pub struct AstCfg {
pub id: String,
pub comment: bool,
pub span: bool,
}
Expand description
Configuration options for retrieving the nodes of an AST
.
Fields§
§id: String
The id associated to a request for an AST
comment: bool
If true
, nodes representing comments are ignored
span: bool
If true
, the start and end positions of a node in a code
are considered
Auto Trait Implementations§
impl Freeze for AstCfg
impl RefUnwindSafe for AstCfg
impl Send for AstCfg
impl Sync for AstCfg
impl Unpin for AstCfg
impl UnwindSafe for AstCfg
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