Enum weedle::Definition
source · [−]pub enum Definition<'a> {
Show 14 variants
Callback(CallbackDefinition<'a>),
CallbackInterface(CallbackInterfaceDefinition<'a>),
Interface(InterfaceDefinition<'a>),
InterfaceMixin(InterfaceMixinDefinition<'a>),
Namespace(NamespaceDefinition<'a>),
Dictionary(DictionaryDefinition<'a>),
PartialInterface(PartialInterfaceDefinition<'a>),
PartialInterfaceMixin(PartialInterfaceMixinDefinition<'a>),
PartialDictionary(PartialDictionaryDefinition<'a>),
PartialNamespace(PartialNamespaceDefinition<'a>),
Enum(EnumDefinition<'a>),
Typedef(TypedefDefinition<'a>),
IncludesStatement(IncludesStatementDefinition<'a>),
Implements(ImplementsDefinition<'a>),
}Expand description
Parses a definition
Variants
Callback(CallbackDefinition<'a>)
CallbackInterface(CallbackInterfaceDefinition<'a>)
Interface(InterfaceDefinition<'a>)
InterfaceMixin(InterfaceMixinDefinition<'a>)
Namespace(NamespaceDefinition<'a>)
Dictionary(DictionaryDefinition<'a>)
PartialInterface(PartialInterfaceDefinition<'a>)
PartialInterfaceMixin(PartialInterfaceMixinDefinition<'a>)
PartialDictionary(PartialDictionaryDefinition<'a>)
PartialNamespace(PartialNamespaceDefinition<'a>)
Enum(EnumDefinition<'a>)
Typedef(TypedefDefinition<'a>)
IncludesStatement(IncludesStatementDefinition<'a>)
Implements(ImplementsDefinition<'a>)
Trait Implementations
sourceimpl<'a> Clone for Definition<'a>
impl<'a> Clone for Definition<'a>
sourcefn clone(&self) -> Definition<'a>
fn clone(&self) -> Definition<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for Definition<'a>
impl<'a> Debug for Definition<'a>
sourceimpl<'a> From<CallbackDefinition<'a>> for Definition<'a>
impl<'a> From<CallbackDefinition<'a>> for Definition<'a>
sourcefn from(x: CallbackDefinition<'a>) -> Self
fn from(x: CallbackDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<CallbackInterfaceDefinition<'a>> for Definition<'a>
impl<'a> From<CallbackInterfaceDefinition<'a>> for Definition<'a>
sourcefn from(x: CallbackInterfaceDefinition<'a>) -> Self
fn from(x: CallbackInterfaceDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<DictionaryDefinition<'a>> for Definition<'a>
impl<'a> From<DictionaryDefinition<'a>> for Definition<'a>
sourcefn from(x: DictionaryDefinition<'a>) -> Self
fn from(x: DictionaryDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<EnumDefinition<'a>> for Definition<'a>
impl<'a> From<EnumDefinition<'a>> for Definition<'a>
sourcefn from(x: EnumDefinition<'a>) -> Self
fn from(x: EnumDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<ImplementsDefinition<'a>> for Definition<'a>
impl<'a> From<ImplementsDefinition<'a>> for Definition<'a>
sourcefn from(x: ImplementsDefinition<'a>) -> Self
fn from(x: ImplementsDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<IncludesStatementDefinition<'a>> for Definition<'a>
impl<'a> From<IncludesStatementDefinition<'a>> for Definition<'a>
sourcefn from(x: IncludesStatementDefinition<'a>) -> Self
fn from(x: IncludesStatementDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<InterfaceDefinition<'a>> for Definition<'a>
impl<'a> From<InterfaceDefinition<'a>> for Definition<'a>
sourcefn from(x: InterfaceDefinition<'a>) -> Self
fn from(x: InterfaceDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<InterfaceMixinDefinition<'a>> for Definition<'a>
impl<'a> From<InterfaceMixinDefinition<'a>> for Definition<'a>
sourcefn from(x: InterfaceMixinDefinition<'a>) -> Self
fn from(x: InterfaceMixinDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<NamespaceDefinition<'a>> for Definition<'a>
impl<'a> From<NamespaceDefinition<'a>> for Definition<'a>
sourcefn from(x: NamespaceDefinition<'a>) -> Self
fn from(x: NamespaceDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<PartialDictionaryDefinition<'a>> for Definition<'a>
impl<'a> From<PartialDictionaryDefinition<'a>> for Definition<'a>
sourcefn from(x: PartialDictionaryDefinition<'a>) -> Self
fn from(x: PartialDictionaryDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<PartialInterfaceDefinition<'a>> for Definition<'a>
impl<'a> From<PartialInterfaceDefinition<'a>> for Definition<'a>
sourcefn from(x: PartialInterfaceDefinition<'a>) -> Self
fn from(x: PartialInterfaceDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<PartialInterfaceMixinDefinition<'a>> for Definition<'a>
impl<'a> From<PartialInterfaceMixinDefinition<'a>> for Definition<'a>
sourcefn from(x: PartialInterfaceMixinDefinition<'a>) -> Self
fn from(x: PartialInterfaceMixinDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<PartialNamespaceDefinition<'a>> for Definition<'a>
impl<'a> From<PartialNamespaceDefinition<'a>> for Definition<'a>
sourcefn from(x: PartialNamespaceDefinition<'a>) -> Self
fn from(x: PartialNamespaceDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<TypedefDefinition<'a>> for Definition<'a>
impl<'a> From<TypedefDefinition<'a>> for Definition<'a>
sourcefn from(x: TypedefDefinition<'a>) -> Self
fn from(x: TypedefDefinition<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> Hash for Definition<'a>
impl<'a> Hash for Definition<'a>
sourceimpl<'a> Ord for Definition<'a>
impl<'a> Ord for Definition<'a>
sourcefn cmp(&self, other: &Definition<'a>) -> Ordering
fn cmp(&self, other: &Definition<'a>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a> PartialEq<Definition<'a>> for Definition<'a>
impl<'a> PartialEq<Definition<'a>> for Definition<'a>
sourcefn eq(&self, other: &Definition<'a>) -> bool
fn eq(&self, other: &Definition<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Definition<'a>) -> bool
fn ne(&self, other: &Definition<'a>) -> bool
This method tests for !=.
sourceimpl<'a> PartialOrd<Definition<'a>> for Definition<'a>
impl<'a> PartialOrd<Definition<'a>> for Definition<'a>
sourcefn partial_cmp(&self, other: &Definition<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Definition<'a>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<'a> Eq for Definition<'a>
impl<'a> StructuralEq for Definition<'a>
impl<'a> StructuralPartialEq for Definition<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Definition<'a>
impl<'a> Send for Definition<'a>
impl<'a> Sync for Definition<'a>
impl<'a> Unpin for Definition<'a>
impl<'a> UnwindSafe for Definition<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more