Skip to main content

TransmutedField

Struct TransmutedField 

Source
pub struct TransmutedField<F, Source: ?Sized, Target: ?Sized>(TransmutedSubplace<F, Source, Target>);

Tuple Fields§

§0: TransmutedSubplace<F, Source, Target>

Trait Implementations§

Source§

impl<F: Default, Source: ?Sized, Target: ?Sized> Default for TransmutedField<F, Source, Target>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<F, Source, Target> Field for TransmutedField<F, Source, Target>
where F: Field, Source: ?Sized + Pointee<Metadata = Metadata<F::Source>>, Target: ?Sized + Pointee<Metadata = Metadata<F::Target>>,

Source§

const NAME: &'static str = F::NAME

The name of the field. Read more
Source§

impl<F, Source, Target> Subplace for TransmutedField<F, Source, Target>
where F: Field, Source: ?Sized + Pointee<Metadata = Metadata<F::Source>>, Target: ?Sized + Pointee<Metadata = Metadata<F::Target>>,

Source§

type Source = Source

Source§

type Target = Target

Source§

fn offset( self, metadata: Metadata<Self::Source>, ) -> (usize, Metadata<Self::Target>)

Auto Trait Implementations§

§

impl<F, Source, Target> Freeze for TransmutedField<F, Source, Target>
where F: Freeze, Source: ?Sized, Target: ?Sized,

§

impl<F, Source, Target> RefUnwindSafe for TransmutedField<F, Source, Target>
where F: RefUnwindSafe, Source: ?Sized, Target: ?Sized,

§

impl<F, Source, Target> Send for TransmutedField<F, Source, Target>
where F: Send, Source: ?Sized, Target: ?Sized,

§

impl<F, Source, Target> Sync for TransmutedField<F, Source, Target>
where F: Sync, Source: ?Sized, Target: ?Sized,

§

impl<F, Source, Target> Unpin for TransmutedField<F, Source, Target>
where F: Unpin, Source: ?Sized, Target: ?Sized,

§

impl<F, Source, Target> UnsafeUnpin for TransmutedField<F, Source, Target>
where F: UnsafeUnpin, Source: ?Sized, Target: ?Sized,

§

impl<F, Source, Target> UnwindSafe for TransmutedField<F, Source, Target>
where F: UnwindSafe, Source: ?Sized, Target: ?Sized,

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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.