[−][src]Struct binjs::meta::spec::SpecBuilder
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]
&mut self,
name: &NodeName
) -> Option<RefMut<InterfaceDeclaration>>
pub fn get_interface(
&mut self,
name: &NodeName
) -> Option<RefMut<InterfaceDeclaration>>
[src]
&mut self,
name: &NodeName
) -> Option<RefMut<InterfaceDeclaration>>
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]
T: 'static + ?Sized,
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> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,