pub struct PageResolution { /* private fields */ }Expand description
Represents a feature option pack as PageResolution.
Implementations§
Trait Implementations§
Source§impl Clone for PageResolution
impl Clone for PageResolution
Source§fn clone(&self) -> PageResolution
fn clone(&self) -> PageResolution
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 moreSource§impl Debug for PageResolution
impl Debug for PageResolution
Source§impl FeatureOptionPack for PageResolution
impl FeatureOptionPack for PageResolution
Source§fn new(option: PrintFeatureOption, parameters: Vec<ParameterInit>) -> Self
fn new(option: PrintFeatureOption, parameters: Vec<ParameterInit>) -> Self
Create a new instance.
Source§fn feature_name() -> OwnedName
fn feature_name() -> OwnedName
Get the feature name of the option.
Source§fn option(&self) -> &PrintFeatureOption
fn option(&self) -> &PrintFeatureOption
Get the DOM of the option.
Source§fn option_mut(&mut self) -> &mut PrintFeatureOption
fn option_mut(&mut self) -> &mut PrintFeatureOption
Get the mutable reference to the DOM of the option.
Source§fn parameters(&self) -> &[ParameterInit]
fn parameters(&self) -> &[ParameterInit]
Get the parameters that is used by the option.
Source§fn parameters_mut(&mut self) -> &mut Vec<ParameterInit>
fn parameters_mut(&mut self) -> &mut Vec<ParameterInit>
Get the mutable reference to the parameters that is used by the option.
Source§fn into_option_with_parameters(self) -> (PrintFeatureOption, Vec<ParameterInit>)
fn into_option_with_parameters(self) -> (PrintFeatureOption, Vec<ParameterInit>)
Convert the feature option pack into the option and the parameters.
Source§fn display_name(&self) -> Option<&str>
fn display_name(&self) -> Option<&str>
Get display name of the page orientation.
Source§fn list(capabilities: &PrintCapabilities) -> impl Iterator<Item = Self> + '_
fn list(capabilities: &PrintCapabilities) -> impl Iterator<Item = Self> + '_
List all possible options defined in the capabilities.
Auto Trait Implementations§
impl Freeze for PageResolution
impl RefUnwindSafe for PageResolution
impl Send for PageResolution
impl Sync for PageResolution
impl Unpin for PageResolution
impl UnsafeUnpin for PageResolution
impl UnwindSafe for PageResolution
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