Struct dae_parser::Ref
source · [−]#[repr(transparent)]pub struct Ref<A, T: ?Sized> {
pub val: A,
/* private fields */
}
Expand description
A wrapper around a base type A
to indicate that the value is pointing to
a value of type T
.
This is not a strict type safety barrier; it is possible to convert a Ref
to and from its raw version. However this can help in API documentation,
as well as to assist type inference in functions like LocalMap::get
.
Fields
val: A
The underlying storage or “raw” value.
Implementations
Trait Implementations
impl<A: Copy, T: Copy + ?Sized> Copy for Ref<A, T>
Auto Trait Implementations
impl<A, T: ?Sized> RefUnwindSafe for Ref<A, T>where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<A, T: ?Sized> Send for Ref<A, T>where
A: Send,
T: Send,
impl<A, T: ?Sized> Sync for Ref<A, T>where
A: Sync,
T: Sync,
impl<A, T: ?Sized> Unpin for Ref<A, T>where
A: Unpin,
T: Unpin,
impl<A, T: ?Sized> UnwindSafe for Ref<A, T>where
A: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more