Struct ezno_parser::ToStringOptions
source · pub struct ToStringOptions {
pub pretty: bool,
pub trailing_semicolon: bool,
pub include_types: bool,
pub include_decorators: bool,
pub include_comments: bool,
pub indent_with: String,
pub expect_jsx: bool,
pub expect_cursors: bool,
}
Expand description
Settings for serializing ASTNodes
Fields§
§pretty: bool
Does not include whitespace minification
trailing_semicolon: bool
Blocks have trailing semicolons. Has no effect if pretty == false
include_types: bool
Include type annotation syntax
include_decorators: bool
TODO not sure about this
include_comments: bool
§indent_with: String
§expect_jsx: bool
If false, panics if sees JSX
expect_cursors: bool
Implementations§
source§impl ToStringOptions
impl ToStringOptions
pub fn minified() -> Self
sourcepub fn typescript() -> Self
pub fn typescript() -> Self
With typescript type syntax
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ToStringOptions
impl Send for ToStringOptions
impl Sync for ToStringOptions
impl Unpin for ToStringOptions
impl UnwindSafe for ToStringOptions
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