Struct g_code::emit::FormatOptions
source · pub struct FormatOptions {
pub checksums: bool,
pub line_numbers: bool,
pub delimit_with_percent: bool,
pub newline_before_comment: bool,
}
Fields§
§checksums: bool
Include checksums
line_numbers: bool
Add line numbers
delimit_with_percent: bool
Delimit the start and end of data with percent symbols
newline_before_comment: bool
Whether to add a newline before each comment
Some g-code viewers like NCViewer do not correctly handle comments on the same line as g-code commands
Trait Implementations§
source§impl Clone for FormatOptions
impl Clone for FormatOptions
source§fn clone(&self) -> FormatOptions
fn clone(&self) -> FormatOptions
Returns a copy of the value. Read more
1.0.0 · 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 FormatOptions
impl Debug for FormatOptions
source§impl Default for FormatOptions
impl Default for FormatOptions
source§fn default() -> FormatOptions
fn default() -> FormatOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FormatOptions
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnwindSafe for FormatOptions
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