Struct binjs_meta::spec::TypeSum [−][src]
pub struct TypeSum { /* fields omitted */ }
An enumeration of interfaces.
Methods
impl TypeSum
[src]
impl TypeSum
pub fn new(types: Vec<TypeSpec>) -> Self
[src]
pub fn new(types: Vec<TypeSpec>) -> Self
pub fn types(&self) -> &[TypeSpec]
[src]
pub fn types(&self) -> &[TypeSpec]
pub fn types_mut(&mut self) -> &mut [TypeSpec]
[src]
pub fn types_mut(&mut self) -> &mut [TypeSpec]
pub fn interfaces(&self) -> &HashSet<NodeName>
[src]
pub fn interfaces(&self) -> &HashSet<NodeName>
pub fn get_interface(
&self,
spec: &Spec,
name: &NodeName
) -> Option<Rc<Interface>>
[src]
pub fn get_interface(
&self,
spec: &Spec,
name: &NodeName
) -> Option<Rc<Interface>>
Trait Implementations
impl Clone for TypeSum
[src]
impl Clone for TypeSum
fn clone(&self) -> TypeSum
[src]
fn clone(&self) -> TypeSum
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for TypeSum
[src]
impl Debug for TypeSum
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for TypeSum
[src]
impl PartialEq for TypeSum
fn eq(&self, other: &TypeSum) -> bool
[src]
fn eq(&self, other: &TypeSum) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TypeSum) -> bool
[src]
fn ne(&self, other: &TypeSum) -> bool
This method tests for !=
.
impl Eq for TypeSum
[src]
impl Eq for TypeSum