pub struct Catalog { /* private fields */ }
Expand description
A collection of PaperSpecs and a default paper size.
Implementations§
Source§impl Catalog
impl Catalog
Sourcepub fn builder<'a>() -> CatalogBuilder<'a>
pub fn builder<'a>() -> CatalogBuilder<'a>
Constructs a new CatalogBuilder.
Sourcepub fn new() -> Self
pub fn new() -> Self
Constructs a new catalog by reading paperspecs
and papersize
files
and examining the environment.
This is equivalent to Catalog::builder().build()
.
Sourcepub fn specs(&self) -> &[PaperSpec]
pub fn specs(&self) -> &[PaperSpec]
Returns the contents of the catalog, as a nonempty list of user-specific paper sizes, followed by system paper sizes.
Sourcepub fn default_paper(&self) -> &PaperSpec
pub fn default_paper(&self) -> &PaperSpec
Returns the default paper size.
This paper size might not be in the catalog’s list of PaperSpecs because the default can be specified in terms of measurements rather than as a name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnwindSafe for Catalog
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