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

pub struct InterfaceDeclaration { /* fields omitted */ }

Methods

impl InterfaceDeclaration[src]

pub fn fields(&'a self) -> &'a [Field][src]

A list of the fields in the interface.

pub fn field(&'a self, name: &FieldName) -> Option<&'a Field>[src]

Fetch a specific field in the structure

pub fn with_full_field(&mut self, contents: Field) -> &mut InterfaceDeclaration[src]

pub fn with_field(
    &mut self,
    name: &FieldName,
    type_: Type
) -> &mut InterfaceDeclaration
[src]

pub fn with_field_lazy(
    &mut self,
    name: &FieldName,
    type_: Type
) -> &mut InterfaceDeclaration
[src]

pub fn with_field_laziness(
    &mut self,
    name: &FieldName,
    type_: Type,
    laziness: Laziness
) -> &mut InterfaceDeclaration
[src]

pub fn with_field_doc(
    &mut self,
    name: &FieldName,
    type_: Type,
    doc: &str
) -> &mut InterfaceDeclaration
[src]

pub fn with_scope(&mut self, value: bool) -> &mut InterfaceDeclaration[src]

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

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

Trait Implementations

impl Clone for InterfaceDeclaration[src]

impl Debug for InterfaceDeclaration[src]

Auto Trait Implementations

impl !RefUnwindSafe for InterfaceDeclaration

impl !Send for InterfaceDeclaration

impl !Sync for InterfaceDeclaration

impl Unpin for InterfaceDeclaration

impl UnwindSafe for InterfaceDeclaration

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> DowncastSync for T where
    T: Send + Sync + Any
[src]

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

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