pub struct ConstMember<'a> {
pub attributes: Option<ExtendedAttributeList<'a>>,
pub const_: Const,
pub const_type: ConstType<'a>,
pub identifier: Identifier<'a>,
pub assign: Assign,
pub const_value: ConstValue<'a>,
pub semi_colon: SemiColon,
}
Expand description
Parses a const interface member [attributes]? const type identifier = value;
Fields§
§attributes: Option<ExtendedAttributeList<'a>>
§const_: Const
§const_type: ConstType<'a>
§identifier: Identifier<'a>
§assign: Assign
§const_value: ConstValue<'a>
§semi_colon: SemiColon
Trait Implementations§
Source§impl<'a> Clone for ConstMember<'a>
impl<'a> Clone for ConstMember<'a>
Source§fn clone(&self) -> ConstMember<'a>
fn clone(&self) -> ConstMember<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ConstMember<'a>
impl<'a> Debug for ConstMember<'a>
Source§impl<'a> From<ConstMember<'a>> for InterfaceMember<'a>
impl<'a> From<ConstMember<'a>> for InterfaceMember<'a>
Source§fn from(x: ConstMember<'a>) -> Self
fn from(x: ConstMember<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<ConstMember<'a>> for MixinMember<'a>
impl<'a> From<ConstMember<'a>> for MixinMember<'a>
Source§fn from(x: ConstMember<'a>) -> Self
fn from(x: ConstMember<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for ConstMember<'a>
impl<'a> Hash for ConstMember<'a>
Source§impl<'a> Ord for ConstMember<'a>
impl<'a> Ord for ConstMember<'a>
Source§fn cmp(&self, other: &ConstMember<'a>) -> Ordering
fn cmp(&self, other: &ConstMember<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for ConstMember<'a>
impl<'a> Parse<'a> for ConstMember<'a>
Source§impl<'a> PartialEq for ConstMember<'a>
impl<'a> PartialEq for ConstMember<'a>
Source§impl<'a> PartialOrd for ConstMember<'a>
impl<'a> PartialOrd for ConstMember<'a>
impl<'a> Eq for ConstMember<'a>
impl<'a> StructuralPartialEq for ConstMember<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConstMember<'a>
impl<'a> RefUnwindSafe for ConstMember<'a>
impl<'a> Send for ConstMember<'a>
impl<'a> Sync for ConstMember<'a>
impl<'a> Unpin for ConstMember<'a>
impl<'a> UnwindSafe for ConstMember<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more