pub struct Ref;Expand description
Taking a T by Reference means taking &'a T as input to or output from a function.
Trait Implementations§
Source§impl<'a, T: 'a, S> As<'a, Ref, T> for Swhere
S: AsRef<T> + 'a,
impl<'a, T: 'a, S> As<'a, Ref, T> for Swhere
S: AsRef<T> + 'a,
fn as_convention(this: &S) -> &T
Source§impl Ord for Ref
impl Ord for Ref
Source§impl PartialOrd for Ref
impl PartialOrd for Ref
impl Copy for Ref
impl Eq for Ref
impl StructuralPartialEq for Ref
Auto Trait Implementations§
impl Freeze for Ref
impl RefUnwindSafe for Ref
impl Send for Ref
impl Sync for Ref
impl Unpin for Ref
impl UnwindSafe for Ref
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more