[−][src]Struct phosphorus::Registry
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]
api: Api,
version: (u8, u8),
profile: Profile,
fallbacks: Fallbacks,
extensions: Exts
) -> Registry where
Exts: AsRef<[&'a str]>,
pub fn write_bindings<W, G>(&self, generator: G, output: &mut W) -> Result<()> where
G: Generator,
W: Write,
[src]
G: Generator,
W: Write,
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.
fn add(self, other: Registry) -> Registry
[src]
impl AddAssign<Registry> for Registry
[src]
fn add_assign(&mut self, other: Self)
[src]
impl StructuralPartialEq for Registry
[src]
impl StructuralEq for Registry
[src]
Auto Trait Implementations
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
impl RefUnwindSafe for Registry
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,