pub struct FormattingOptions {
pub starting_branch: &'static str,
pub continuing_branch: &'static str,
pub branching_branch: &'static str,
pub turning_branch: &'static str,
pub ending_branch: &'static str,
pub turning_ending_branch: &'static str,
}Expand description
Defines the parts which are used to print out the formatted string.
See the format module for options. You
can make your own, if you can parse the sparse instructions
below.
§Reference print (see Fields)
>,,,, main - 100.0%, 300 ms/loop
+,,,, physics simulation - 66.7%, 200 ms/loop
| +.... moving things - 50.0%, 100 ms/loop
| -.... resolving collisions - 50.0%, 100 ms/loop
-.... rendering - 33.3%, 100 ms/loopFields§
§starting_branch: &'static strSee the reference-print, starting_branch is represented by “>”
continuing_branch: &'static strSee the reference-print, continuing_branch is represented by “|”
branching_branch: &'static strSee the reference-print, branching_branch is represented by “+”
turning_branch: &'static strSee the reference-print, turning_branch is represented by “-”
ending_branch: &'static strSee the reference-print, ending_branch is represented by “….”
turning_ending_branch: &'static strSee the reference-print, turning_ending_branch is represented by “,,,,”
Trait Implementations§
Source§impl Clone for FormattingOptions
impl Clone for FormattingOptions
Source§fn clone(&self) -> FormattingOptions
fn clone(&self) -> FormattingOptions
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 moreimpl Copy for FormattingOptions
Auto Trait Implementations§
impl Freeze for FormattingOptions
impl RefUnwindSafe for FormattingOptions
impl Send for FormattingOptions
impl Sync for FormattingOptions
impl Unpin for FormattingOptions
impl UnsafeUnpin for FormattingOptions
impl UnwindSafe for FormattingOptions
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