pub struct Define {
pub name: ExprKind,
pub body: ExprKind,
pub location: SyntaxObject,
}Fields§
§name: ExprKind§body: ExprKind§location: SyntaxObjectImplementations§
Source§impl Define
impl Define
pub fn new(name: ExprKind, body: ExprKind, location: SyntaxObject) -> Self
pub fn is_an_alias_definition(&self) -> Option<SyntaxObjectId>
pub fn name_id(&self) -> Option<SyntaxObjectId>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Define
impl<'de> Deserialize<'de> for Define
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
impl StructuralPartialEq for Define
Auto Trait Implementations§
impl Freeze for Define
impl RefUnwindSafe for Define
impl Send for Define
impl Sync for Define
impl Unpin for Define
impl UnsafeUnpin for Define
impl UnwindSafe for Define
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more