pub struct DisplayOptions {
pub convention: DisplayConvention,
pub show_sign: bool,
pub zero_pad: bool,
pub custom_separator: Option<char>,
}Expand description
Options for formatting a timecode.
Fields§
§convention: DisplayConventionDisplay convention to use.
show_sign: boolWhether to include a sign prefix (+/-) for relative values.
zero_pad: boolWhether to zero-pad all fields.
custom_separator: Option<char>Custom separator between fields (overrides convention default).
Implementations§
Source§impl DisplayOptions
impl DisplayOptions
Sourcepub fn milliseconds() -> Self
pub fn milliseconds() -> Self
Milliseconds display options.
Sourcepub fn frame_number() -> Self
pub fn frame_number() -> Self
Frame number display options.
Trait Implementations§
Source§impl Clone for DisplayOptions
impl Clone for DisplayOptions
Source§fn clone(&self) -> DisplayOptions
fn clone(&self) -> DisplayOptions
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 DisplayOptions
impl Debug for DisplayOptions
Auto Trait Implementations§
impl Freeze for DisplayOptions
impl RefUnwindSafe for DisplayOptions
impl Send for DisplayOptions
impl Sync for DisplayOptions
impl Unpin for DisplayOptions
impl UnsafeUnpin for DisplayOptions
impl UnwindSafe for DisplayOptions
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