pub enum IndentStyle {
NoIndentation,
Tabs,
Spaces(NonZeroUsize),
}Expand description
Specify indentation style to use when writing the Bvh joints.
By default, this value is set to 1 tab.
Variants§
NoIndentation
Do not indent nested joints.
Tabs
Use a single tab ('\t') for indentation.
Spaces(NonZeroUsize)
Use n spaces for indentation.
Implementations§
Source§impl IndentStyle
impl IndentStyle
Sourcepub fn with_spaces(n: usize) -> Self
pub fn with_spaces(n: usize) -> Self
Create a new IndentStyle with n preceeding spaces.
If n is 0, then IndentStyle::NoIndentation is returned.
Trait Implementations§
Source§impl Clone for IndentStyle
impl Clone for IndentStyle
Source§fn clone(&self) -> IndentStyle
fn clone(&self) -> IndentStyle
Returns a duplicate 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 IndentStyle
impl Debug for IndentStyle
Source§impl Default for IndentStyle
Create a new IndentStyle using a single tab.
impl Default for IndentStyle
Create a new IndentStyle using a single tab.
Source§impl Hash for IndentStyle
impl Hash for IndentStyle
Source§impl PartialEq for IndentStyle
impl PartialEq for IndentStyle
impl Eq for IndentStyle
impl StructuralPartialEq for IndentStyle
Auto Trait Implementations§
impl Freeze for IndentStyle
impl RefUnwindSafe for IndentStyle
impl Send for IndentStyle
impl Sync for IndentStyle
impl Unpin for IndentStyle
impl UnwindSafe for IndentStyle
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