pub struct RefMutWithStaticType<'a, T: ?Sized>(/* private fields */);
Expand description
Exclusive 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> RefMutWithStaticType<'a, T>
impl<'a, T: ?Sized> RefMutWithStaticType<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for RefMutWithStaticType<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for RefMutWithStaticType<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for RefMutWithStaticType<'a, T>
impl<'a, T> Sync for RefMutWithStaticType<'a, T>
impl<'a, T> Unpin for RefMutWithStaticType<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for RefMutWithStaticType<'a, T>
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.