Rust

Weak references (Rc/Weak)

Në shqip: Referencat e dobëta në Rust

ShpjegimiSQ

Dy Rc që tregojnë njëri-tjetrin s'lirohen kurrë (cikël). Weak<T> është referencë që s'e mban vlerën gjallë — për lidhje si „fëmija → prindi“ në pemë.

EnglishEN

Two Rcs pointing at each other are never freed (a cycle). Weak<T> is a reference that doesn't keep the value alive — for links like “child → parent” in trees.

Si ta mendosh

Si një numër telefoni i vjetër: mund të provosh, por personi mund të mos jetë më aty.

Lexoje në anglisht

Like an old phone number: you can try, but the person may no longer be there.

Terma të lidhur