pub struct BatchRender<'a> { /* private fields */ }Expand description
Builder for rendering a slice of QrCode values into stable, named
in-memory outputs.
Implementations§
Source§impl<'a> BatchRender<'a>
impl<'a> BatchRender<'a>
Sourcepub fn extension(self, extension: impl Into<String>) -> Self
pub fn extension(self, extension: impl Into<String>) -> Self
Sets the output extension. A leading dot is accepted and stripped.
Pass an empty string to omit the extension.
Sourcepub const fn start_index(self, start_index: usize) -> Self
pub const fn start_index(self, start_index: usize) -> Self
Sets the first numeric index used in generated names.
Sourcepub const fn index_width(self, index_width: usize) -> Self
pub const fn index_width(self, index_width: usize) -> Self
Sets the minimum zero-padded index width.
Sourcepub const fn quiet_zone(self, quiet_zone: bool) -> Self
pub const fn quiet_zone(self, quiet_zone: bool) -> Self
Sets whether rendered symbols include their quiet zone.
Sourcepub const fn module_dimensions(self, width: u32, height: u32) -> Self
pub const fn module_dimensions(self, width: u32, height: u32) -> Self
Sets fixed module dimensions for every rendered output.
Sourcepub const fn default_module_dimensions(self) -> Self
pub const fn default_module_dimensions(self) -> Self
Clears fixed module dimensions, returning to the renderer default.
Trait Implementations§
Source§impl<'a> Clone for BatchRender<'a>
impl<'a> Clone for BatchRender<'a>
Source§fn clone(&self) -> BatchRender<'a>
fn clone(&self) -> BatchRender<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for BatchRender<'a>
impl<'a> RefUnwindSafe for BatchRender<'a>
impl<'a> Send for BatchRender<'a>
impl<'a> Sync for BatchRender<'a>
impl<'a> Unpin for BatchRender<'a>
impl<'a> UnsafeUnpin for BatchRender<'a>
impl<'a> UnwindSafe for BatchRender<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more