[][src]Struct gf::pivot::metadata::Metadata

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

🟢 Metadata in a sealed module.


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

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

Wrap unsealed metadata.

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

Return parent module.

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

Return the unsealed metadata.

pub fn name(&self) -> Option<&'a str>[src]

Return object name.

pub fn get(&self, key: &str) -> Vec<&'a BitVec>[src]

Return values for key.

pub fn get_str(&self, key: &str) -> Vec<Result<&'a str, Utf8Error>>[src]

Return UTF-8 strings for key.

pub fn get_constants(&self, key: &str) -> Vec<Constant<'a>>[src]

Return constants for key.

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Metadata<'a>

impl<'a> Send for Metadata<'a>

impl<'a> Sync for Metadata<'a>

impl<'a> Unpin for Metadata<'a>

impl<'a> UnwindSafe for Metadata<'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.