Skip to main content

Subplace

Trait Subplace 

Source
pub unsafe trait Subplace: Sized {
    type Source: ?Sized;
    type Target: ?Sized;

    // Required method
    fn offset(
        self,
        metadata: <Self::Source as Pointee>::Metadata,
    ) -> (usize, <Self::Target as Pointee>::Metadata);
}
🔬This is a nightly-only experimental API. (field_projections #145383)

Required Associated Types§

Source

type Source: ?Sized

🔬This is a nightly-only experimental API. (field_projections #145383)
Source

type Target: ?Sized

🔬This is a nightly-only experimental API. (field_projections #145383)

Required Methods§

Source

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

🔬This is a nightly-only experimental API. (field_projections #145383)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F: Field> Subplace for F

Source§

type Source = <F as Field>::Base

Source§

type Target = <F as Field>::Type