pub enum PageOrientation {
Portrait,
Landscape,
}Expand description
How the figure sits on the page (savefig.orientation).
Variants§
Implementations§
Trait Implementations§
Source§impl Archive for PageOrientation
impl Archive for PageOrientation
Source§impl Clone for PageOrientation
impl Clone for PageOrientation
impl Copy for PageOrientation
Source§impl Debug for PageOrientation
impl Debug for PageOrientation
Source§impl Default for PageOrientation
impl Default for PageOrientation
Source§impl Display for PageOrientation
impl Display for PageOrientation
impl Eq for PageOrientation
Source§impl FromStr for PageOrientation
impl FromStr for PageOrientation
Source§fn from_str(name: &str) -> Result<Self, PageSetupError>
fn from_str(name: &str) -> Result<Self, PageSetupError>
Parses "portrait" or "landscape".
use pltrs_render::PageOrientation;
assert_eq!("landscape".parse(), Ok(PageOrientation::Landscape));
assert!("sideways".parse::<PageOrientation>().is_err());Source§type Err = PageSetupError
type Err = PageSetupError
The associated error which can be returned from parsing.
Source§impl PartialEq for PageOrientation
impl PartialEq for PageOrientation
impl StructuralPartialEq for PageOrientation
Auto Trait Implementations§
impl Forget for PageOrientation
impl Freeze for PageOrientation
impl Move for PageOrientation
impl RefUnwindSafe for PageOrientation
impl Send for PageOrientation
impl Sync for PageOrientation
impl Unpin for PageOrientation
impl UnsafeUnpin for PageOrientation
impl UnwindSafe for PageOrientation
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