pub struct EnumValueSettings {
pub span_range: Range<usize>,
pub attributes: Vec<Attribute>,
pub note: Option<String>,
}
Expand description
Represents settings of an enum value or variant.
Fields§
§span_range: Range<usize>
The range of the span in the source text.
attributes: Vec<Attribute>
A vector of key and optional value pairs representing attributes of the enum value.
note: Option<String>
A note associated with the enum value.
Trait Implementations§
Source§impl Clone for EnumValueSettings
impl Clone for EnumValueSettings
Source§fn clone(&self) -> EnumValueSettings
fn clone(&self) -> EnumValueSettings
Returns a duplicate 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 EnumValueSettings
impl Debug for EnumValueSettings
Source§impl Default for EnumValueSettings
impl Default for EnumValueSettings
Source§fn default() -> EnumValueSettings
fn default() -> EnumValueSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnumValueSettings
impl RefUnwindSafe for EnumValueSettings
impl Send for EnumValueSettings
impl Sync for EnumValueSettings
impl Unpin for EnumValueSettings
impl UnwindSafe for EnumValueSettings
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