pub struct VTableView<T>(/* private fields */)
where
T: ?Sized;Expand description
A typed view of a ValueVTable.
Implementations§
Source§impl<'a, T> VTableView<&'a mut T>
impl<'a, T> VTableView<&'a mut T>
Sourcepub fn of_deref() -> VTableView<&'a mut T>
pub fn of_deref() -> VTableView<&'a mut T>
Fetches the vtable for the type.
Source§impl<'a, T> VTableView<&'a T>
impl<'a, T> VTableView<&'a T>
Sourcepub fn of_deref() -> VTableView<&'a T>
pub fn of_deref() -> VTableView<&'a T>
Fetches the vtable for the type.
Source§impl<'a, T> VTableView<T>
impl<'a, T> VTableView<T>
Sourcepub const fn of() -> VTableView<T>
pub const fn of() -> VTableView<T>
Fetches the vtable for the type.
Sourcepub const fn type_name(
&self,
) -> fn(&mut Formatter<'_>, TypeNameOpts) -> Result<(), Error>
pub const fn type_name( &self, ) -> fn(&mut Formatter<'_>, TypeNameOpts) -> Result<(), Error>
cf. TypeNameFn
Sourcepub fn invariants(&self) -> Option<fn(TypedPtrConst<'_, T>) -> bool>
pub fn invariants(&self) -> Option<fn(TypedPtrConst<'_, T>) -> bool>
cf. InvariantsFn
Sourcepub fn display(
&self,
) -> Option<fn(TypedPtrConst<'_, T>, &mut Formatter<'_>) -> Result<(), Error>>
pub fn display( &self, ) -> Option<fn(TypedPtrConst<'_, T>, &mut Formatter<'_>) -> Result<(), Error>>
cf. DisplayFn
Sourcepub fn debug(
&self,
) -> Option<fn(TypedPtrConst<'_, T>, &mut Formatter<'_>) -> Result<(), Error>>
pub fn debug( &self, ) -> Option<fn(TypedPtrConst<'_, T>, &mut Formatter<'_>) -> Result<(), Error>>
cf. DebugFn
Sourcepub fn partial_eq(
&self,
) -> Option<fn(TypedPtrConst<'_, T>, TypedPtrConst<'_, T>) -> bool>
pub fn partial_eq( &self, ) -> Option<fn(TypedPtrConst<'_, T>, TypedPtrConst<'_, T>) -> bool>
cf. PartialEqFn for equality comparison
Sourcepub fn partial_ord(
&self,
) -> Option<fn(TypedPtrConst<'_, T>, TypedPtrConst<'_, T>) -> Option<Ordering>>
pub fn partial_ord( &self, ) -> Option<fn(TypedPtrConst<'_, T>, TypedPtrConst<'_, T>) -> Option<Ordering>>
cf. PartialOrdFn for partial ordering comparison
Sourcepub fn ord(
&self,
) -> Option<fn(TypedPtrConst<'_, T>, TypedPtrConst<'_, T>) -> Ordering>
pub fn ord( &self, ) -> Option<fn(TypedPtrConst<'_, T>, TypedPtrConst<'_, T>) -> Ordering>
cf. CmpFn for total ordering
Sourcepub fn hash(
&self,
) -> Option<for<'mem> fn(TypedPtrConst<'mem, T>, &mut dyn Hasher)>
pub fn hash( &self, ) -> Option<for<'mem> fn(TypedPtrConst<'mem, T>, &mut dyn Hasher)>
cf. HashFn
Sourcepub fn try_borrow_inner(
&self,
) -> Option<for<'src> fn(TypedPtrConst<'src, T>) -> Result<TypedPtrConst<'src, T>, TryBorrowInnerError>>
pub fn try_borrow_inner( &self, ) -> Option<for<'src> fn(TypedPtrConst<'src, T>) -> Result<TypedPtrConst<'src, T>, TryBorrowInnerError>>
cf. TryBorrowInnerFn
This is used by transparent types to efficiently access the inner value without copying.
Source§impl<'a, T> VTableView<T>where
T: Facet<'a>,
impl<'a, T> VTableView<T>where
T: Facet<'a>,
Sourcepub fn default_in_place(
&self,
) -> Option<for<'mem> fn(TypedPtrUninit<'mem, T>) -> TypedPtrMut<'mem, T>>
pub fn default_in_place( &self, ) -> Option<for<'mem> fn(TypedPtrUninit<'mem, T>) -> TypedPtrMut<'mem, T>>
cf. DefaultInPlaceFn
Sourcepub fn clone_into(
&self,
) -> Option<for<'src, 'dst> fn(TypedPtrConst<'src, T>, TypedPtrUninit<'dst, T>) -> TypedPtrMut<'dst, T>>
pub fn clone_into( &self, ) -> Option<for<'src, 'dst> fn(TypedPtrConst<'src, T>, TypedPtrUninit<'dst, T>) -> TypedPtrMut<'dst, T>>
cf. CloneIntoFn
Sourcepub fn parse(
&self,
) -> Option<for<'mem> fn(&str, TypedPtrUninit<'mem, T>) -> Result<TypedPtrMut<'mem, T>, ParseError>>
pub fn parse( &self, ) -> Option<for<'mem> fn(&str, TypedPtrUninit<'mem, T>) -> Result<TypedPtrMut<'mem, T>, ParseError>>
cf. ParseFn
Sourcepub fn try_from(
&self,
) -> Option<for<'src, 'mem, 'shape> fn(TypedPtrConst<'src, T>, &'static Shape, TypedPtrUninit<'mem, T>) -> Result<&'mem mut T, TryFromError>>
pub fn try_from( &self, ) -> Option<for<'src, 'mem, 'shape> fn(TypedPtrConst<'src, T>, &'static Shape, TypedPtrUninit<'mem, T>) -> Result<&'mem mut T, TryFromError>>
cf. TryFromFn
This also acts as a “TryFromInner” — you can use it to go:
String=>Utf8PathBufString=>UuidT=>Option<T>T=>Arc<T>T=>NonZero<T>- etc.
Sourcepub fn try_into_inner(
&self,
) -> Option<for<'src, 'dst> fn(TypedPtrConst<'src, T>, TypedPtrUninit<'dst, T>) -> Result<&'dst mut T, TryIntoInnerError>>
pub fn try_into_inner( &self, ) -> Option<for<'src, 'dst> fn(TypedPtrConst<'src, T>, TypedPtrUninit<'dst, T>) -> Result<&'dst mut T, TryIntoInnerError>>
cf. TryIntoInnerFn
This is used by transparent types to convert the wrapper type into its inner value. Primarily used during serialization.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for VTableView<T>where
T: ?Sized,
impl<T> RefUnwindSafe for VTableView<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for VTableView<T>
impl<T> Sync for VTableView<T>
impl<T> Unpin for VTableView<T>
impl<T> UnwindSafe for VTableView<T>where
T: UnwindSafe + ?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