pub struct DumpAstOptions {
pub sort_items_by_global_id: bool,
pub drop_use_items: bool,
pub drop_rust_modules_items: bool,
pub drop_not_implemented_yet_items: bool,
pub drop_attributes: bool,
pub erase_spans: bool,
pub erase_indices: bool,
}Expand description
Options one can set when dumping ASTs.
Fields§
§sort_items_by_global_id: boolSort the items via their global id. The order is not alphabetical, it is just deterministic.
drop_use_items: boolDrop Use items.
drop_rust_modules_items: boolDrop RustModule items.
drop_not_implemented_yet_items: boolDrop NotImplementedYet items.
drop_attributes: boolDrop every attributes in the AST.
erase_spans: boolErases spans, replacing them by "erased".
Setting this to true will return untyped JSON.
erase_indices: boolErases indices (e.g. local variable indices). Setting this to true will return untyped JSON.
Trait Implementations§
Source§impl Clone for DumpAstOptions
impl Clone for DumpAstOptions
Source§fn clone(&self) -> DumpAstOptions
fn clone(&self) -> DumpAstOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DumpAstOptions
impl Debug for DumpAstOptions
Source§impl Default for DumpAstOptions
impl Default for DumpAstOptions
Source§impl<'de> Deserialize<'de> for DumpAstOptions
impl<'de> Deserialize<'de> for DumpAstOptions
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 DumpAstOptions
impl RefUnwindSafe for DumpAstOptions
impl Send for DumpAstOptions
impl Sync for DumpAstOptions
impl Unpin for DumpAstOptions
impl UnsafeUnpin for DumpAstOptions
impl UnwindSafe for DumpAstOptions
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more