16Gb RAM laptop with 16 cpu kernels
{
// "rust-analyzer.completion.limit": 10,
// "rust-analyzer.workspace.symbol.search.limit": 50,apt install lvm2sudo pvcreate /dev/nvme0n1${your partition}sudo vgcreate vg /dev/nvme0n1${your partition}sudo lvcreate --type vdo -L ${your size}G -V ${your size}G --compression y --deduplication n vg/lv_swapsudo vgchange -ay # activation all created VDO for tests before rebootsudo blkid /dev/vg/lvol0 # remember UUID ${your uuid}sudo nano /etc/fstab # append UUID=${your uuid} none swap sw 0 0 to itpub struct GenericId<T>(pub i64, pub PhantomData<T>);
pub struct PhantomMyId;
pub type MyId = GenericId<PhantomMyId>;
pub struct PhantomOtherId;
pub type OtherId = GenericId<PhantomOtherId>;
pub fn foo(my_id: &MyId){| public class Person { | |
| private final String username; | |
| private final int age; | |
| Person(PersonBuilder personBuilder) { | |
| this.username = personBuilder.username; | |
| this.age = personBuilder.age; | |
| } |