LifetimeVTable

Struct LifetimeVTable 

Source
pub struct LifetimeVTable<'a, B> { /* private fields */ }
Expand description

Implementation of VTable for types with zero or one lifetime.

This vtable is powered by the lifetime_type_id module.

§Examples

use dungeon_cell::vtable::{LifetimeVTable, VTableOf, VTable};
use dungeon_cell::bound::bounds;

// get for i32
let vtable = LifetimeVTable::<'static, bounds::Normal>::new::<i32>();

assert_eq!(vtable.descriptor().type_name(), "i32");
assert_eq!(vtable.descriptor().size(), 4);
assert_eq!(vtable.descriptor().alignment(), 4);

// get vtable for f64
let vtable = <&'static LifetimeVTable<'static, bounds::Normal> as VTableOf<f64>>::instance();

assert_eq!(vtable.descriptor().type_name(), "f64");
assert_eq!(vtable.descriptor().size(), 8);
assert_eq!(vtable.descriptor().alignment(), 8);

Implementations§

Source§

impl<'a, B: IsBound> LifetimeVTable<'a, B>

Source

pub const fn new<T>() -> Self
where T: Dynamic<B> + StaticForm<'a>,

Return the const instance of the vtable for T.

T needs to implement StaticForm.

Trait Implementations§

Source§

impl<'a, B: Clone> Clone for LifetimeVTable<'a, B>

Source§

fn clone(&self) -> LifetimeVTable<'a, B>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, 'b, T, B: IsBound> ConstVTableOf<T> for &'b LifetimeVTable<'a, B>
where T: Dynamic<B> + StaticForm<'a>,

Source§

const INSTANCE: Self

Instance of the vtable for the type T.
Source§

impl<'a, T, B: IsBound> ConstVTableOf<T> for LifetimeVTable<'a, B>
where T: Dynamic<B> + StaticForm<'a>,

Source§

const INSTANCE: Self

Instance of the vtable for the type T.
Source§

impl<'a, B> Debug for LifetimeVTable<'a, B>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, B: IsBound> VTable for LifetimeVTable<'a, B>

Source§

type Bounds = B

The dynamic trait bounds applied. Read more
Source§

type Id = Lifetime<'a>

Type to store the ID information for which type the vtable is for. Read more
Source§

fn descriptor(&self) -> &Descriptor<Self::Id>

Get the type descriptor. Read more
Source§

fn bound_impl(&self) -> &BoundsImpl<Self::Bounds>

Get the bound implementation. Read more
Source§

impl<'a, 'b, T, B: IsBound> VTableOf<T> for &'b LifetimeVTable<'a, B>
where T: Dynamic<B> + StaticForm<'a>,

Source§

fn instance() -> Self

Get an instance of the vtable for the type T.
Source§

impl<'a, T, B: IsBound> VTableOf<T> for LifetimeVTable<'a, B>
where T: Dynamic<B> + StaticForm<'a>,

Source§

fn instance() -> Self

Get an instance of the vtable for the type T.
Source§

impl<'a, 'b, B: IsBound, Bnew> VTableSubset<Bnew> for &'a LifetimeVTable<'b, B>
where Bnew: Subset<B> + IsBound,

Source§

type Subset = &'a LifetimeVTable<'b, Bnew>

The type of the new vtable.
Source§

fn into_subset(self) -> Self::Subset

Convert a vtable.
Source§

impl<'a, B: IsBound, Bnew> VTableSubset<Bnew> for LifetimeVTable<'a, B>
where Bnew: Subset<B> + IsBound,

Source§

type Subset = LifetimeVTable<'a, Bnew>

The type of the new vtable.
Source§

fn into_subset(self) -> Self::Subset

Convert a vtable.

Auto Trait Implementations§

§

impl<'a, B> Freeze for LifetimeVTable<'a, B>

§

impl<'a, B> RefUnwindSafe for LifetimeVTable<'a, B>
where B: RefUnwindSafe,

§

impl<'a, B> Send for LifetimeVTable<'a, B>
where B: Send,

§

impl<'a, B> Sync for LifetimeVTable<'a, B>
where B: Sync,

§

impl<'a, B> Unpin for LifetimeVTable<'a, B>
where B: Unpin,

§

impl<'a, B> UnwindSafe for LifetimeVTable<'a, B>
where B: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Dynamic<Bound<Send, Sync, __, Clone, Unpin, Debug>> for T
where T: Send + Sync + Clone + Unpin + Debug,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, Sync, __, Clone, Unpin, __>> for T
where T: Send + Sync + Clone + Unpin,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, Sync, __, Clone, __, Debug>> for T
where T: Send + Sync + Clone + Debug,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, Sync, __, Clone, __, __>> for T
where T: Send + Sync + Clone,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, Sync, __, __, Unpin, Debug>> for T
where T: Send + Sync + Unpin + Debug,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, Sync, __, __, Unpin, __>> for T
where T: Send + Sync + Unpin,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, Sync, __, __, __, Debug>> for T
where T: Send + Sync + Debug,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, Sync, __, __, __, __>> for T
where T: Send + Sync,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, __, __, Clone, Unpin, Debug>> for T
where T: Send + Clone + Unpin + Debug,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, __, __, Clone, Unpin, __>> for T
where T: Send + Clone + Unpin,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, __, __, Clone, __, Debug>> for T
where T: Send + Clone + Debug,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, __, __, Clone, __, __>> for T
where T: Send + Clone,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, __, __, __, Unpin, Debug>> for T
where T: Send + Unpin + Debug,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, __, __, __, Unpin, __>> for T
where T: Send + Unpin,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, __, __, __, __, Debug>> for T
where T: Send + Debug,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<Send, __, __, __, __, __>> for T
where T: Send,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, Sync, __, Clone, Unpin, Debug>> for T
where T: Sync + Clone + Unpin + Debug,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, Sync, __, Clone, Unpin, __>> for T
where T: Sync + Clone + Unpin,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, Sync, __, Clone, __, Debug>> for T
where T: Sync + Clone + Debug,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, Sync, __, Clone, __, __>> for T
where T: Sync + Clone,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, Sync, __, __, Unpin, Debug>> for T
where T: Sync + Unpin + Debug,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, Sync, __, __, Unpin, __>> for T
where T: Sync + Unpin,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, Sync, __, __, __, Debug>> for T
where T: Sync + Debug,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, Sync, __, __, __, __>> for T
where T: Sync,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, __, __, Clone, Unpin, Debug>> for T
where T: Clone + Unpin + Debug,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, __, __, Clone, Unpin, __>> for T
where T: Clone + Unpin,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, __, __, Clone, __, Debug>> for T
where T: Clone + Debug,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, __, __, Clone, __, __>> for T
where T: Clone,

Source§

unsafe fn clone_unchecked(this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, __, __, __, Unpin, Debug>> for T
where T: Unpin + Debug,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, __, __, __, Unpin, __>> for T
where T: Unpin,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, __, __, __, __, Debug>> for T
where T: Debug,

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked(this: &T, f: &mut Formatter<'_>) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> Dynamic<Bound<__, __, __, __, __, __>> for T

Source§

unsafe fn clone_unchecked(_this: &T) -> T

Unsafe form of Self::clone(). Read more
Source§

unsafe fn debug_unchecked( _this: &T, _f: &mut Formatter<'_>, ) -> Result<(), Error>

Unsafe form of Self::debug(). Read more
Source§

fn clone(this: &Self) -> Self
where Self: Sized, <B as IsBound>::CloneMarker: Clone,

Call the Clone::clone() implementation of Self. Read more
Source§

fn debug(this: &Self, f: &mut Formatter<'_>) -> Result<(), Error>
where Self: Sized, <B as IsBound>::DebugMarker: Debug,

Call the Debug::fmt() implementation of Self. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Inspect<Static> for T
where T: 'static,

Source§

fn inspect() -> Static

Get the T for Self.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.