Skip to main content

TransmutedSubplace

Struct TransmutedSubplace 

Source
pub struct TransmutedSubplace<Sub, Source: ?Sized, Target: ?Sized> {
    subplace: Sub,
    _source: PhantomInvariant<Source>,
    _target: PhantomInvariant<Target>,
}

Fields§

§subplace: Sub§_source: PhantomInvariant<Source>§_target: PhantomInvariant<Target>

Implementations§

Source§

impl<Sub, Source, Target> TransmutedSubplace<Sub, Source, Target>
where Sub: Subplace, Source: ?Sized, Target: ?Sized,

Source

pub unsafe fn new_unchecked(p: Sub) -> Self

Trait Implementations§

Source§

impl<Sub: Default, Source: ?Sized, Target: ?Sized> Default for TransmutedSubplace<Sub, Source, Target>

Source§

fn default() -> Self

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

impl<Sub, Source, Target> Subplace for TransmutedSubplace<Sub, Source, Target>
where Sub: Subplace, Source: ?Sized + Pointee<Metadata = Metadata<Sub::Source>>, Target: ?Sized + Pointee<Metadata = Metadata<Sub::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<Sub, Source, Target> Freeze for TransmutedSubplace<Sub, Source, Target>
where Sub: Freeze, Source: ?Sized, Target: ?Sized,

§

impl<Sub, Source, Target> RefUnwindSafe for TransmutedSubplace<Sub, Source, Target>
where Sub: RefUnwindSafe, Source: ?Sized, Target: ?Sized,

§

impl<Sub, Source, Target> Send for TransmutedSubplace<Sub, Source, Target>
where Sub: Send, Source: ?Sized, Target: ?Sized,

§

impl<Sub, Source, Target> Sync for TransmutedSubplace<Sub, Source, Target>
where Sub: Sync, Source: ?Sized, Target: ?Sized,

§

impl<Sub, Source, Target> Unpin for TransmutedSubplace<Sub, Source, Target>
where Sub: Unpin, Source: ?Sized, Target: ?Sized,

§

impl<Sub, Source, Target> UnsafeUnpin for TransmutedSubplace<Sub, Source, Target>
where Sub: UnsafeUnpin, Source: ?Sized, Target: ?Sized,

§

impl<Sub, Source, Target> UnwindSafe for TransmutedSubplace<Sub, Source, Target>
where Sub: 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.