#[non_exhaustive]pub struct PrintfTemplate {
pub prefix: String,
pub width: u8,
pub suffix: String,
}Expand description
A printf-style multi-output template. Detected by the args parser
when the output filename contains %[0-9]*d. Used by Scene-shaped
inputs (PDF) to fan out one file per page.
Examples:
page-%03d.png → prefix=page-, width=3, suffix=.png →
page-000.png, page-001.png, …
out%d.jpg → prefix=out, width=0, suffix=.jpg →
out0.jpg, out1.jpg, …
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prefix: String§width: u8§suffix: StringImplementations§
Trait Implementations§
Source§impl Clone for PrintfTemplate
impl Clone for PrintfTemplate
Source§impl Debug for PrintfTemplate
impl Debug for PrintfTemplate
impl Eq for PrintfTemplate
Source§impl PartialEq for PrintfTemplate
impl PartialEq for PrintfTemplate
impl StructuralPartialEq for PrintfTemplate
Auto Trait Implementations§
impl Freeze for PrintfTemplate
impl RefUnwindSafe for PrintfTemplate
impl Send for PrintfTemplate
impl Sync for PrintfTemplate
impl Unpin for PrintfTemplate
impl UnsafeUnpin for PrintfTemplate
impl UnwindSafe for PrintfTemplate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.