[−][src]Struct bvh_anim::write::WriteOptions
Specify formatting options for writing a Bvh
.
Fields
indent: IndentStyle
Which indentation style to use for nested bones.
line_terminator: LineTerminator
Which style new line terminator to use when writing the bvh
.
offset_significant_figures: usize
Number of significant figures to use when writing OFFSET
values.
frame_time_significant_figures: usize
Number of significant figures to use when writing the Frame Time
value.
motion_values_significant_figures: usize
Number of significant figures to use when writing MOTION
values.
Methods
impl WriteOptions
[src]
pub fn new() -> Self
[src]
Create a new WriteOptions
with default values.
pub fn write<W: Write>(&self, bvh: &Bvh, writer: &mut W) -> Result<()>
[src]
Output the Bvh
file to the writer
with the given options.
pub fn write_to_string(&self, bvh: &Bvh) -> BString
[src]
Output the Bvh
file to the string
with the given options.
pub const fn with_indent(self, indent: IndentStyle) -> Self
[src]
Sets indent
on self
to the new IndentStyle
.
pub fn with_line_terminator(self, line_terminator: LineTerminator) -> Self
[src]
Sets line_terminator
on self
to the new LineTerminator
.
pub const fn with_offset_significant_figures(
self,
offset_significant_figures: usize
) -> Self
[src]
self,
offset_significant_figures: usize
) -> Self
Sets offset_significant_figures
on self
to the new offset_significant_figures
.
pub const fn with_frame_time_significant_figures(
self,
frame_time_significant_figures: usize
) -> Self
[src]
self,
frame_time_significant_figures: usize
) -> Self
Sets motion_values_significant_figures
on self
to the new motion_values_significant_figures
.
pub const fn with_motion_values_significant_figures(
self,
motion_values_significant_figures: usize
) -> Self
[src]
self,
motion_values_significant_figures: usize
) -> Self
Sets motion_values_significant_figures
on self
to the new motion_values_significant_figures
.
Trait Implementations
impl PartialEq<WriteOptions> for WriteOptions
[src]
fn eq(&self, other: &WriteOptions) -> bool
[src]
fn ne(&self, other: &WriteOptions) -> bool
[src]
impl Default for WriteOptions
[src]
impl Clone for WriteOptions
[src]
fn clone(&self) -> WriteOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for WriteOptions
[src]
impl Debug for WriteOptions
[src]
impl Hash for WriteOptions
[src]
Auto Trait Implementations
impl Send for WriteOptions
impl Sync for WriteOptions
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,