[][src]Struct phosphorus::Registry

pub struct Registry {
    pub api: Api,
    pub version: (u8, u8),
    pub fallbacks: Fallbacks,
    pub enums: BTreeSet<Enum>,
    pub cmds: BTreeSet<Cmd>,
    pub aliases: BTreeMap<String, Vec<String>>,
    pub groups: BTreeMap<String, Group>,
}

Fields

api: Apiversion: (u8, u8)fallbacks: Fallbacksenums: BTreeSet<Enum>cmds: BTreeSet<Cmd>aliases: BTreeMap<String, Vec<String>>groups: BTreeMap<String, Group>

Methods

impl Registry[src]

pub fn new<'a, Exts>(
    api: Api,
    version: (u8, u8),
    profile: Profile,
    fallbacks: Fallbacks,
    extensions: Exts
) -> Registry where
    Exts: AsRef<[&'a str]>, 
[src]

pub fn write_bindings<W, G>(&self, generator: G, output: &mut W) -> Result<()> where
    G: Generator,
    W: Write
[src]

pub fn get_tys(&self) -> BTreeSet<&str>[src]

Returns a set of all the types used in the supplied registry. This is useful for working out what conversions are needed for the specific registry.

Trait Implementations

impl Clone for Registry[src]

impl Eq for Registry[src]

impl PartialEq<Registry> for Registry[src]

impl Debug for Registry[src]

impl Add<Registry> for Registry[src]

type Output = Registry

The resulting type after applying the + operator.

impl AddAssign<Registry> for Registry[src]

impl StructuralPartialEq for Registry[src]

impl StructuralEq for Registry[src]

Auto Trait Implementations

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]