[][src]Struct bvh_anim::write::WriteOptions

pub struct WriteOptions {
    pub indent: IndentStyle,
    pub line_terminator: LineTerminator,
    pub offset_significant_figures: usize,
    pub frame_time_significant_figures: usize,
    pub motion_values_significant_figures: usize,
    // some fields omitted
}

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]

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]

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]

Sets motion_values_significant_figures on self to the new motion_values_significant_figures.

Trait Implementations

impl PartialEq<WriteOptions> for WriteOptions[src]

impl Default for WriteOptions[src]

impl Clone for 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]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]