[][src]Struct phosphorus::Registry

pub struct Registry { /* fields omitted */ }

Methods

impl Registry[src]

pub fn api(&self) -> Api[src]

pub fn version(&self) -> (u8, u8)[src]

pub fn fallbacks(&self) -> Fallbacks[src]

pub fn enums(&self) -> &BTreeSet<Enum>[src]

pub fn cmds(&self) -> &BTreeSet<Cmd>[src]

pub fn aliases(&self) -> &BTreeMap<String, Vec<String>>[src]

pub fn groups(&self) -> &BTreeMap<String, Group>[src]

pub fn extensions(&self) -> &[String][src]

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]