pub struct VTableView<T: ?Sized>(/* private fields */);
Expand description
A typed view of a ValueVTable
.
Implementations§
Source§impl<'a, T: Facet<'a> + ?Sized> VTableView<T>
impl<'a, T: Facet<'a> + ?Sized> VTableView<T>
Sourcepub fn type_name(&self) -> TypeNameFn
pub fn type_name(&self) -> TypeNameFn
cf. TypeNameFn
Sourcepub fn invariants(&self) -> Option<InvariantsFnTyped<T>>
pub fn invariants(&self) -> Option<InvariantsFnTyped<T>>
cf. InvariantsFn
Sourcepub fn display(&self) -> Option<DisplayFnTyped<T>>
pub fn display(&self) -> Option<DisplayFnTyped<T>>
cf. DisplayFn
Sourcepub fn debug(&self) -> Option<DebugFnTyped<T>>
pub fn debug(&self) -> Option<DebugFnTyped<T>>
cf. DebugFn
Sourcepub fn partial_eq(&self) -> Option<PartialEqFnTyped<T>>
pub fn partial_eq(&self) -> Option<PartialEqFnTyped<T>>
cf. PartialEqFn
for equality comparison
Sourcepub fn partial_ord(&self) -> Option<PartialOrdFnTyped<T>>
pub fn partial_ord(&self) -> Option<PartialOrdFnTyped<T>>
cf. PartialOrdFn
for partial ordering comparison
Sourcepub fn ord(&self) -> Option<CmpFnTyped<T>>
pub fn ord(&self) -> Option<CmpFnTyped<T>>
cf. CmpFn
for total ordering
Sourcepub fn hash(&self) -> Option<HashFnTyped<T>>
pub fn hash(&self) -> Option<HashFnTyped<T>>
cf. HashFn
Sourcepub fn try_borrow_inner(&self) -> Option<TryBorrowInnerFnTyped<T>>
pub fn try_borrow_inner(&self) -> Option<TryBorrowInnerFnTyped<T>>
cf. TryBorrowInnerFn
This is used by transparent types to efficiently access the inner value without copying.
Source§impl<'a, T: Facet<'a>> VTableView<T>
impl<'a, T: Facet<'a>> VTableView<T>
Sourcepub fn default_in_place(&self) -> Option<DefaultInPlaceFnTyped<T>>
pub fn default_in_place(&self) -> Option<DefaultInPlaceFnTyped<T>>
cf. DefaultInPlaceFn
Sourcepub fn clone_into(&self) -> Option<CloneIntoFnTyped<T>>
pub fn clone_into(&self) -> Option<CloneIntoFnTyped<T>>
cf. CloneIntoFn
Sourcepub fn parse(&self) -> Option<ParseFnTyped<T>>
pub fn parse(&self) -> Option<ParseFnTyped<T>>
cf. ParseFn
Sourcepub fn try_from(&self) -> Option<TryFromFnTyped<T>>
pub fn try_from(&self) -> Option<TryFromFnTyped<T>>
cf. TryFromFn
This also acts as a “TryFromInner” — you can use it to go:
String
=>Utf8PathBuf
String
=>Uuid
T
=>Option<T>
T
=>Arc<T>
T
=>NonZero<T>
- etc.
Sourcepub fn try_into_inner(&self) -> Option<TryIntoInnerFnTyped<T>>
pub fn try_into_inner(&self) -> Option<TryIntoInnerFnTyped<T>>
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