minus-squareJustin Ossevoort@toot.communitytoRust Programming@lemmy.ml•Rust Pro Tips (collection)linkfedilinkarrow-up0·1 year ago@calcopiritus @hatchet That way you can pass a reference or anything that can be turned into a reference as an argument. So the caller can supply a &T, Box, Rc, Arc, … (I dont’t know if there is a blanket impl so that even T itself will work. linkfedilink
@calcopiritus @hatchet That way you can pass a reference or anything that can be turned into a reference as an argument. So the caller can supply a &T, Box, Rc, Arc, … (I dont’t know if there is a blanket impl so that even T itself will work.