[][src]Struct gf::pivot::case_fn::CaseFn

pub struct CaseFn<'a> { /* fields omitted */ }

🟢 Case function in a sealed module.


impl<'a> CaseFn<'a>[src]

pub unsafe fn from_unsealed(
    module: &'a Module,
    id: CaseFnId,
    unsealed: &'a UnsealedCaseFn
) -> Self

Wrap an unsealed aggregate.

pub fn module(&self) -> &'a Module[src]

Return parent module.

pub fn id(&self) -> CaseFnId[src]

Return ID.

pub fn as_unsealed(&self) -> &'a UnsealedCaseFn[src]

Return the unsealed case function.

pub fn sealing_data(&self) -> &'a CaseFnSealingData[src]

Return sealing data.

pub fn metadata(&self) -> Metadata<'a>[src]

Return metadata.

pub fn unsealed_cases(&self) -> &'a [UnsealedCase][src]

Return unsealed cases.

Trait Implementations

impl<'a> Clone for CaseFn<'a>[src]

impl<'a> Copy for CaseFn<'a>[src]

impl<'a> Eq for CaseFn<'a>[src]

impl<'a> Hash for CaseFn<'a>[src]

impl<'a> PartialEq<CaseFn<'a>> for CaseFn<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for CaseFn<'a>

impl<'a> Send for CaseFn<'a>

impl<'a> Sync for CaseFn<'a>

impl<'a> Unpin for CaseFn<'a>

impl<'a> UnwindSafe for CaseFn<'a>

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.