pub struct BaseNode {
pub node_type: Option<String>,
pub start: Option<u32>,
pub end: Option<u32>,
pub loc: Option<SourceLocation>,
pub range: Option<(u32, u32)>,
pub extra: Option<Value>,
pub leading_comments: Option<Vec<Comment>>,
pub inner_comments: Option<Vec<Comment>>,
pub trailing_comments: Option<Vec<Comment>>,
pub node_id: Option<u32>,
}Fields§
§node_type: Option<String>The node type string (e.g. “BlockStatement”).
When deserialized through a #[serde(tag = "type")] enum, the enum
consumes the “type” field so this defaults to None. When deserialized
directly, this captures the “type” field for round-trip fidelity.
start: Option<u32>§end: Option<u32>§loc: Option<SourceLocation>§range: Option<(u32, u32)>§extra: Option<Value>§leading_comments: Option<Vec<Comment>>§inner_comments: Option<Vec<Comment>>§trailing_comments: Option<Vec<Comment>>§node_id: Option<u32>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BaseNode
impl<'de> Deserialize<'de> for BaseNode
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
Auto Trait Implementations§
impl Freeze for BaseNode
impl RefUnwindSafe for BaseNode
impl Send for BaseNode
impl Sync for BaseNode
impl Unpin for BaseNode
impl UnsafeUnpin for BaseNode
impl UnwindSafe for BaseNode
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