pub struct Meta { /* private fields */ }Expand description
Descriptive metadata for an atlas run. Native schema versioning belongs to AtlasDocument.
Implementations§
Source§impl Meta
impl Meta
pub fn app(&self) -> &str
pub fn version(&self) -> &str
pub fn format(&self) -> &str
pub const fn scale(&self) -> f32
Sourcepub const fn power_of_two(&self) -> bool
pub const fn power_of_two(&self) -> bool
Returns whether power-of-two output sizing was applied to every page.
Sourcepub const fn square(&self) -> bool
pub const fn square(&self) -> bool
Returns whether square output sizing was applied to every page.
Sourcepub const fn max_dimensions(&self) -> (u32, u32)
pub const fn max_dimensions(&self) -> (u32, u32)
Returns an upper bound for every output page dimension.
pub const fn extrude(&self) -> u32
pub const fn allow_rotation(&self) -> bool
pub fn trim_mode(&self) -> &str
pub const fn background_color(&self) -> Option<[u8; 4]>
Trait Implementations§
impl StructuralPartialEq for Meta
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnsafeUnpin for Meta
impl UnwindSafe for Meta
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().