pub struct PageOutputColor { /* private fields */ }Expand description
Represents a feature option pack as PageOutputColor.
Trait Implementations§
Source§impl Clone for PageOutputColor
impl Clone for PageOutputColor
Source§fn clone(&self) -> PageOutputColor
fn clone(&self) -> PageOutputColor
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 PageOutputColor
impl Debug for PageOutputColor
Source§impl FeatureOptionPack for PageOutputColor
impl FeatureOptionPack for PageOutputColor
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.
Source§impl FeatureOptionPackWithPredefined for PageOutputColor
impl FeatureOptionPackWithPredefined for PageOutputColor
Source§type PredefinedName = PredefinedPageOutputColor
type PredefinedName = PredefinedPageOutputColor
The type which represents the predefined name.
Source§fn as_predefined_name(&self) -> Option<Self::PredefinedName>
fn as_predefined_name(&self) -> Option<Self::PredefinedName>
Get the predefined name of the option.
If the option is not predefined,
None is returned.Auto Trait Implementations§
impl Freeze for PageOutputColor
impl RefUnwindSafe for PageOutputColor
impl Send for PageOutputColor
impl Sync for PageOutputColor
impl Unpin for PageOutputColor
impl UnsafeUnpin for PageOutputColor
impl UnwindSafe for PageOutputColor
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