pub struct EnumDef { /* private fields */ }
Expand description
Corresponds to the grammar rule enum_def
.
Implementations§
source§impl EnumDef
impl EnumDef
pub fn new(name: Identifier) -> Self
pub fn with_ts_span(self, value: Span) -> Self
pub fn has_ts_span(&self) -> bool
pub fn ts_span(&self) -> Option<&Span>
pub fn set_ts_span(&mut self, value: Span)
pub fn unset_ts_span(&mut self)
pub fn has_body(&self) -> bool
pub fn body(&self) -> Option<&EnumBody>
pub fn set_body(&mut self, value: EnumBody)
pub fn unset_body(&mut self)
pub fn name(&self) -> &Identifier
pub fn set_name(&mut self, value: Identifier)
pub fn referenced_annotations(&self) -> HashSet<&IdentifierReference>
pub fn is_complete(&self) -> bool
pub fn referenced_types(&self) -> HashSet<&IdentifierReference>
Trait Implementations§
source§impl<'de> Deserialize<'de> for EnumDef
impl<'de> Deserialize<'de> for EnumDef
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<EnumDef> for Definition
impl From<EnumDef> for Definition
Auto Trait Implementations§
impl RefUnwindSafe for EnumDef
impl Send for EnumDef
impl Sync for EnumDef
impl Unpin for EnumDef
impl UnwindSafe for EnumDef
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