pub struct SequenceNaming { /* private fields */ }Expand description
How the files of an image sequence are named in one place.
The prefix, suffix, and frame-number padding belong to a locator, not to the sequence’s content (ADR 0038): copies of one sequence may name their files differently.
Implementations§
Source§impl SequenceNaming
impl SequenceNaming
Sourcepub fn new(
prefix: impl Into<String>,
suffix: impl Into<String>,
padding: u8,
) -> Result<Self>
pub fn new( prefix: impl Into<String>, suffix: impl Into<String>, padding: u8, ) -> Result<Self>
Creates a bounded file naming without directory separators.
§Errors
Returns ErrorKind::InvalidArgument when the naming is empty, too
long, contains a path separator or NUL, or requests excessive padding.
Trait Implementations§
Source§impl Clone for SequenceNaming
impl Clone for SequenceNaming
Source§fn clone(&self) -> SequenceNaming
fn clone(&self) -> SequenceNaming
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 moreSource§impl Debug for SequenceNaming
impl Debug for SequenceNaming
impl Eq for SequenceNaming
Source§impl Hash for SequenceNaming
impl Hash for SequenceNaming
Source§impl Ord for SequenceNaming
impl Ord for SequenceNaming
Source§fn cmp(&self, other: &SequenceNaming) -> Ordering
fn cmp(&self, other: &SequenceNaming) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SequenceNaming
impl PartialEq for SequenceNaming
Source§impl PartialOrd for SequenceNaming
impl PartialOrd for SequenceNaming
impl StructuralPartialEq for SequenceNaming
Auto Trait Implementations§
impl Freeze for SequenceNaming
impl RefUnwindSafe for SequenceNaming
impl Send for SequenceNaming
impl Sync for SequenceNaming
impl Unpin for SequenceNaming
impl UnsafeUnpin for SequenceNaming
impl UnwindSafe for SequenceNaming
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