Trait opaque_typedef::OpaqueTypedefUnsized [] [src]

pub trait OpaqueTypedefUnsized {
    type Inner: ?Sized;
    type Error;
    unsafe fn from_inner_unchecked(inner: &Self::Inner) -> &Self;
unsafe fn from_inner_unchecked_mut(inner: &mut Self::Inner) -> &mut Self;
fn from_inner(inner: &Self::Inner) -> Result<&Self, Self::Error>;
fn from_inner_mut(inner: &mut Self::Inner) -> Result<&mut Self, Self::Error>;
fn as_inner(&self) -> &Self::Inner;
unsafe fn as_inner_mut(&mut self) -> &mut Self::Inner; }

Common functions for opaque typedef-ed unsized types.

Associated Types

Inner type.

Validation error type.

Required Methods

Creates a reference from the inner reference without validation.

Creates a mutable reference from the inner mutable reference without validation.

Creates a reference from the inner reference with validation.

Creates a mutable reference from the inner mutable reference with validation.

Returns the inner reference.

Returns the inner mutable reference.

Implementors