Struct ezno_lib::ToStringOptions
source · pub struct ToStringOptions {
pub pretty: bool,
pub trailing_semicolon: bool,
pub single_statement_on_new_line: bool,
pub include_types: bool,
pub include_decorators: bool,
pub comments: Comments,
pub indent_with: String,
pub expect_jsx: bool,
pub expect_cursors: bool,
}Expand description
Settings for serializing ASTNodes
Fields§
§pretty: boolDoes not include whitespace minification
trailing_semicolon: boolBlocks have trailing semicolons. Has no effect if pretty == false
single_statement_on_new_line: boolSingle statements get put on the same line as their parent statement
include_types: boolInclude type annotation syntax
include_decorators: boolTODO not sure about this
comments: Comments§indent_with: String§expect_jsx: boolIf false, panics if sees JSX
expect_cursors: boolImplementations§
source§impl ToStringOptions
impl ToStringOptions
pub fn minified() -> ToStringOptions
sourcepub fn typescript() -> ToStringOptions
pub fn typescript() -> ToStringOptions
With typescript type syntax
Trait Implementations§
source§impl Default for ToStringOptions
impl Default for ToStringOptions
source§fn default() -> ToStringOptions
fn default() -> ToStringOptions
Returns the “default value” for a type. Read more
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