[−][src]Struct binjs_meta::spec::InterfaceDeclaration
Methods
impl InterfaceDeclaration
[src]
pub fn fields<'a>(&'a self) -> &'a [Field]
[src]
A list of the fields in the interface.
pub fn field<'a>(&'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 Self
[src]
pub fn with_field(&mut self, name: &FieldName, type_: Type) -> &mut Self
[src]
pub fn with_field_lazy(&mut self, name: &FieldName, type_: Type) -> &mut Self
[src]
pub fn with_field_laziness(
&mut self,
name: &FieldName,
type_: Type,
laziness: Laziness
) -> &mut Self
[src]
&mut self,
name: &FieldName,
type_: Type,
laziness: Laziness
) -> &mut Self
pub fn with_field_doc(
&mut self,
name: &FieldName,
type_: Type,
doc: &str
) -> &mut Self
[src]
&mut self,
name: &FieldName,
type_: Type,
doc: &str
) -> &mut Self
pub fn with_scope(&mut self, value: bool) -> &mut Self
[src]
pub fn with_scoped_dictionary(&mut self, field_name: &FieldName) -> &mut Self
[src]
pub fn with_scoped_dictionary_str(&mut self, field_name: &str) -> &mut Self
[src]
Trait Implementations
impl Clone for InterfaceDeclaration
[src]
fn clone(&self) -> InterfaceDeclaration
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,