Struct dae_parser::Ref [−][src]
#[repr(transparent)]pub struct Ref<A, T: ?Sized> {
pub val: A,
// some fields omitted
}
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
Auto Trait Implementations
impl<A, T: ?Sized> RefUnwindSafe for Ref<A, T> where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<A, T: ?Sized> UnwindSafe for Ref<A, T> where
A: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more