pub struct RefWithStaticType<'a, T: ?Sized>(/* private fields */);
Expand description
Reference that is annotated with a type ID corresponding to a ’static version of the type
How the ID corresponds to T
is up to the type T
. Any type may use it internally without
documented stability guarantees (being itself responsible for upholding whatever it relies on).
Code outside of the crate defining T
should not construct it or rely on its properties; if
really needed, that crates should provide own wrapper methods that define their precise
unsafety criteria.
Implementations§
Source§impl<'a, T: ?Sized> RefWithStaticType<'a, T>
impl<'a, T: ?Sized> RefWithStaticType<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for RefWithStaticType<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for RefWithStaticType<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for RefWithStaticType<'a, T>
impl<'a, T> Sync for RefWithStaticType<'a, T>
impl<'a, T> Unpin for RefWithStaticType<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for RefWithStaticType<'a, T>where
T: RefUnwindSafe + ?Sized,
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
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.