[][src]Struct binjs::meta::spec::SpecBuilder

pub struct SpecBuilder { /* fields omitted */ }

A data structure used to progressively construct the Spec.

Methods

impl SpecBuilder[src]

pub fn new() -> SpecBuilder[src]

pub fn names(&self) -> &HashMap<String, Rc<String>, RandomState>[src]

pub fn node_name(&mut self, name: &str) -> NodeName[src]

Return an NodeName for a name. Equality comparison on NodeName can be performed by checking physical equality.

pub fn get_node_name(&self, name: &str) -> Option<NodeName>[src]

pub fn import_node_name(&mut self, node_name: &NodeName)[src]

pub fn field_name(&mut self, name: &str) -> FieldName[src]

pub fn import_field_name(&mut self, field_name: &FieldName)[src]

pub fn add_interface(
    &mut self,
    name: &NodeName
) -> Option<RefMut<InterfaceDeclaration>>
[src]

pub fn get_interface(
    &mut self,
    name: &NodeName
) -> Option<RefMut<InterfaceDeclaration>>
[src]

pub fn add_string_enum(&mut self, name: &NodeName) -> Option<RefMut<StringEnum>>[src]

Add a named enumeration.

pub fn add_typedef(&mut self, name: &NodeName) -> Option<RefMut<Type>>[src]

pub fn get_typedef(&self, name: &NodeName) -> Option<Ref<Type>>[src]

Access an already added typedef.

pub fn get_typedef_mut(&mut self, name: &NodeName) -> Option<RefMut<Type>>[src]

Access an already added typedef, mutably.

pub fn into_spec(self, options: SpecOptions<'a>) -> Spec[src]

Generate the graph.

Auto Trait Implementations

impl !RefUnwindSafe for SpecBuilder

impl !Send for SpecBuilder

impl !Sync for SpecBuilder

impl Unpin for SpecBuilder

impl UnwindSafe for SpecBuilder

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]