[][src]Struct gf::support::seal::Sealed

pub struct Sealed<T> { /* fields omitted */ }

Wrapper around sealed entities.

Methods

impl<T> Sealed<T>[src]

pub unsafe fn new_unchecked(entity: T) -> Self[src]

Wrap an entity skipping the sealing checks.

pub fn into_inner(sealed: Self) -> T[src]

Unwrap the sealed entity.

impl<T: Seal> Sealed<T>[src]

pub fn new(entity: T) -> Result<Self, SealError<T>>[src]

Seal an entity.

Trait Implementations

impl<T: Clone> Clone for Sealed<T>[src]

impl<T: Eq> Eq for Sealed<T>[src]

impl<T: PartialEq> PartialEq<Sealed<T>> for Sealed<T>[src]

impl<T: Debug> Debug for Sealed<T>[src]

impl<T> Deref for Sealed<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> StructuralPartialEq for Sealed<T>[src]

impl<T> StructuralEq for Sealed<T>[src]

Auto Trait Implementations

impl<T> Send for Sealed<T> where
    T: Send

impl<T> Sync for Sealed<T> where
    T: Sync

impl<T> Unpin for Sealed<T> where
    T: Unpin

impl<T> UnwindSafe for Sealed<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Sealed<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]