Struct schema_ast::ast::EnumValueId
source · pub struct EnumValueId(/* private fields */);
Expand description
An opaque identifier for a value in an AST enum. Use the
r#enum[enum_value_id]
syntax to resolve the id to an ast::EnumValue
.
Implementations§
source§impl EnumValueId
impl EnumValueId
sourcepub const MIN: EnumValueId = _
pub const MIN: EnumValueId = _
Used for range bounds when iterating over BTreeMaps.
sourcepub const MAX: EnumValueId = _
pub const MAX: EnumValueId = _
Used for range bounds when iterating over BTreeMaps.
Trait Implementations§
source§impl Clone for EnumValueId
impl Clone for EnumValueId
source§fn clone(&self) -> EnumValueId
fn clone(&self) -> EnumValueId
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 Debug for EnumValueId
impl Debug for EnumValueId
source§impl Hash for EnumValueId
impl Hash for EnumValueId
source§impl Index<EnumValueId> for Enum
impl Index<EnumValueId> for Enum
source§impl Ord for EnumValueId
impl Ord for EnumValueId
source§fn cmp(&self, other: &EnumValueId) -> Ordering
fn cmp(&self, other: &EnumValueId) -> 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 PartialEq for EnumValueId
impl PartialEq for EnumValueId
source§fn eq(&self, other: &EnumValueId) -> bool
fn eq(&self, other: &EnumValueId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EnumValueId
impl PartialOrd for EnumValueId
source§fn partial_cmp(&self, other: &EnumValueId) -> Option<Ordering>
fn partial_cmp(&self, other: &EnumValueId) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl Copy for EnumValueId
impl Eq for EnumValueId
impl StructuralEq for EnumValueId
impl StructuralPartialEq for EnumValueId
Auto Trait Implementations§
impl RefUnwindSafe for EnumValueId
impl Send for EnumValueId
impl Sync for EnumValueId
impl Unpin for EnumValueId
impl UnwindSafe for EnumValueId
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