pub struct Ref<Tag>(/* private fields */);Expand description
A ResourceTag that corresponds to a shared reference to the output value of Tag.
Can also be used as an operator on TypeFn implementations.
For example: Ref<Value<T>> implements the following for all 'x, T: 'static:
ⓘ
TypeFn<Output<Lt!['x]> = &'x T> + ResourceTag + TagFor<Lt!['x], Value = &'x T>Trait Implementations§
Source§impl<Tag: ResourceTag> ResourceTag for Ref<Tag>
 
impl<Tag: ResourceTag> ResourceTag for Ref<Tag>
Auto Trait Implementations§
impl<Tag> Freeze for Ref<Tag>where
    Tag: Freeze,
impl<Tag> RefUnwindSafe for Ref<Tag>where
    Tag: RefUnwindSafe,
impl<Tag> Send for Ref<Tag>where
    Tag: Send,
impl<Tag> Sync for Ref<Tag>where
    Tag: Sync,
impl<Tag> Unpin for Ref<Tag>where
    Tag: Unpin,
impl<Tag> UnwindSafe for Ref<Tag>where
    Tag: UnwindSafe,
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