Struct core::any::tags::MaybeSizedValue
source · pub struct MaybeSizedValue<T: ?Sized + 'static>(PhantomData<T>);
Expand description
Type-based tag similar to Value
but which may be unsized (i.e., has a ?Sized
bound).
Tuple Fields§
§0: PhantomData<T>
Trait Implementations§
source§impl<'a, T: ?Sized + 'static> MaybeSizedType<'a> for MaybeSizedValue<T>
impl<'a, T: ?Sized + 'static> MaybeSizedType<'a> for MaybeSizedValue<T>
Auto Trait Implementations§
impl<T: ?Sized> Freeze for MaybeSizedValue<T>
impl<T: ?Sized> RefUnwindSafe for MaybeSizedValue<T>where T: RefUnwindSafe,
impl<T: ?Sized> Send for MaybeSizedValue<T>where T: Send,
impl<T: ?Sized> Sync for MaybeSizedValue<T>where T: Sync,
impl<T: ?Sized> Unpin for MaybeSizedValue<T>where T: Unpin,
impl<T: ?Sized> UnwindSafe for MaybeSizedValue<T>where T: 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