pub struct PrintBuilder { /* private fields */ }Implementations§
Source§impl PrintBuilder
impl PrintBuilder
pub fn context(self, context: impl Into<BrowsingContext>) -> Self
pub fn background(self, background: impl Into<bool>) -> Self
pub fn margin(self, margin: impl Into<PrintMarginParameters>) -> Self
pub fn orientation(self, orientation: impl Into<PrintOrientation>) -> Self
pub fn page(self, page: impl Into<PrintPageParameters>) -> Self
pub fn page_range(self, page_range: impl Into<Value>) -> Self
pub fn page_ranges<I, S>(self, page_ranges: I) -> Self
pub fn scale(self, scale: impl Into<f64>) -> Self
pub fn shrink_to_fit(self, shrink_to_fit: impl Into<bool>) -> Self
pub fn build(self) -> Result<Print, String>
Trait Implementations§
Source§impl Clone for PrintBuilder
impl Clone for PrintBuilder
Source§fn clone(&self) -> PrintBuilder
fn clone(&self) -> PrintBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PrintBuilder
impl Default for PrintBuilder
Source§fn default() -> PrintBuilder
fn default() -> PrintBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrintBuilder
impl RefUnwindSafe for PrintBuilder
impl Send for PrintBuilder
impl Sync for PrintBuilder
impl Unpin for PrintBuilder
impl UnsafeUnpin for PrintBuilder
impl UnwindSafe for PrintBuilder
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> 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 more