#[repr(C)]pub struct AstNode {
pub class_index: i32,
pub location: Location,
}Fields§
§class_index: i32§location: LocationImplementations§
Source§impl AstNode
impl AstNode
pub fn as_item_mut<T>(&mut self) -> *mut Twhere
T: AstNodeClass,
Trait Implementations§
Source§impl AstNodeRef for &AstNode
impl AstNodeRef for &AstNode
fn class_index(self) -> Option<i32>
Auto Trait Implementations§
impl Freeze for AstNode
impl RefUnwindSafe for AstNode
impl Send for AstNode
impl Sync for AstNode
impl Unpin for AstNode
impl UnsafeUnpin for AstNode
impl UnwindSafe for AstNode
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