#[repr(C)]pub struct ValueVTableUnsized {
pub type_name: TypeNameFn,
pub marker_traits: fn() -> MarkerTraits,
pub drop_in_place: fn() -> Option<DropInPlaceFnWide>,
pub invariants: fn() -> Option<InvariantsFnWide>,
pub display: fn() -> Option<DisplayFnWide>,
pub debug: fn() -> Option<DebugFnWide>,
pub partial_eq: fn() -> Option<PartialEqFnWide>,
pub partial_ord: fn() -> Option<PartialOrdFnWide>,
pub ord: fn() -> Option<CmpFnWide>,
pub hash: fn() -> Option<HashFnWide>,
pub try_borrow_inner: fn() -> Option<TryBorrowInnerFnWide>,
}
Expand description
VTable for common operations that can be performed on any !Sized
shape
Fields§
§type_name: TypeNameFn
cf. TypeNameFn
marker_traits: fn() -> MarkerTraits
Marker traits implemented by the type
drop_in_place: fn() -> Option<DropInPlaceFnWide>
cf. DropInPlaceFnWide
— if None, drops without side-effects
invariants: fn() -> Option<InvariantsFnWide>
cf. InvariantsFnWide
display: fn() -> Option<DisplayFnWide>
cf. DisplayFnWide
debug: fn() -> Option<DebugFnWide>
cf. DebugFnWide
partial_eq: fn() -> Option<PartialEqFnWide>
cf. PartialEqFnWide
for equality comparison
partial_ord: fn() -> Option<PartialOrdFnWide>
cf. PartialOrdFnWide
for partial ordering comparison
ord: fn() -> Option<CmpFnWide>
cf. CmpFnWide
for total ordering
hash: fn() -> Option<HashFnWide>
cf. HashFnWide
try_borrow_inner: fn() -> Option<TryBorrowInnerFnWide>
This is used by transparent types to efficiently access the inner value without copying.
Trait Implementations§
Source§impl Clone for ValueVTableUnsized
impl Clone for ValueVTableUnsized
Source§fn clone(&self) -> ValueVTableUnsized
fn clone(&self) -> ValueVTableUnsized
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ValueVTableUnsized
impl Debug for ValueVTableUnsized
impl Copy for ValueVTableUnsized
Auto Trait Implementations§
impl Freeze for ValueVTableUnsized
impl RefUnwindSafe for ValueVTableUnsized
impl Send for ValueVTableUnsized
impl Sync for ValueVTableUnsized
impl Unpin for ValueVTableUnsized
impl UnwindSafe for ValueVTableUnsized
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