Rust

Deref & deref coercion

Në shqip përdoret i njëjti emër.

ShpjegimiSQ

Deref i lejon një tipi të sillet si referencë — p.sh. Box<T> dhe String. Falë „deref coercion“, një &String kalon automatikisht aty ku pritet &str.

EnglishEN

Deref lets a type behave like a reference — e.g. Box<T> and String. Thanks to “deref coercion”, a &String is passed automatically where a &str is expected.

Si ta mendosh

Si një çelës universal që hap edhe dyert e vjetra.

Lexoje në anglisht

Like a master key that also opens the old doors.

Terma të lidhur