pub trait BasisPointee<B: Basis>: Pointee {
    type BasisMetadata: Copy + Send + Sync + Ord + Hash + Unpin;
    type FromNativeError: Debug;
    type ToNativeError: Debug;

    fn from_native_metadata(
        metadata: Self::Metadata
    ) -> Result<Self::BasisMetadata, Self::FromNativeError>; fn to_native_metadata(
        metadata: Self::BasisMetadata
    ) -> Result<Self::Metadata, Self::ToNativeError>; }
Expand description

A Pointee with metadata that changes with a choice of basis.

Required Associated Types

The metadata associated with the pointee in the chosen basis.

An error occurred while converting metadata from the native representation.

An error occurred while converting metadata to the native representation.

Required Methods

Returns the pointer metadata in B corresponding to the given native pointer metadata, or Err if the conversion failed.

Returns the native pointer metadata corresponding to the given pointer metadata in B, or Err if the conversion failed.

Implementations on Foreign Types

Implementors