pub struct PrintToPdfOptions { /* private fields */ }Implementations§
Source§impl PrintToPdfOptions
impl PrintToPdfOptions
pub fn new( landscape: Option<bool>, margins_type: Option<usize>, page_size: Option<Size>, print_background: Option<bool>, print_selection_only: Option<bool>, ) -> PrintToPdfOptions
pub fn landscape(&self) -> Option<bool>
pub fn margins_type(&self) -> Option<usize>
pub fn page_size(&self) -> Option<Size>
pub fn print_background(&self) -> Option<bool>
pub fn print_selection_only(&self) -> Option<bool>
Trait Implementations§
Source§impl Clone for PrintToPdfOptions
impl Clone for PrintToPdfOptions
Source§fn clone(&self) -> PrintToPdfOptions
fn clone(&self) -> PrintToPdfOptions
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 moreimpl Copy for PrintToPdfOptions
Source§impl Debug for PrintToPdfOptions
impl Debug for PrintToPdfOptions
impl Eq for PrintToPdfOptions
Source§impl From<PrintToPdfOptions> for JsValue
impl From<PrintToPdfOptions> for JsValue
Source§fn from(value: PrintToPdfOptions) -> Self
fn from(value: PrintToPdfOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for PrintToPdfOptions
impl FromWasmAbi for PrintToPdfOptions
Source§impl Hash for PrintToPdfOptions
impl Hash for PrintToPdfOptions
Source§impl IntoWasmAbi for PrintToPdfOptions
impl IntoWasmAbi for PrintToPdfOptions
Source§impl LongRefFromWasmAbi for PrintToPdfOptions
impl LongRefFromWasmAbi for PrintToPdfOptions
Source§type Abi = WasmPtr<WasmRefCell<PrintToPdfOptions>>
type Abi = WasmPtr<WasmRefCell<PrintToPdfOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<PrintToPdfOptions>
type Anchor = RcRef<PrintToPdfOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl Ord for PrintToPdfOptions
impl Ord for PrintToPdfOptions
Source§fn cmp(&self, other: &PrintToPdfOptions) -> Ordering
fn cmp(&self, other: &PrintToPdfOptions) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PrintToPdfOptions
impl PartialEq for PrintToPdfOptions
Source§fn eq(&self, other: &PrintToPdfOptions) -> bool
fn eq(&self, other: &PrintToPdfOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PrintToPdfOptions
impl PartialOrd for PrintToPdfOptions
Source§impl RefFromWasmAbi for PrintToPdfOptions
impl RefFromWasmAbi for PrintToPdfOptions
Source§type Abi = WasmPtr<WasmRefCell<PrintToPdfOptions>>
type Abi = WasmPtr<WasmRefCell<PrintToPdfOptions>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<PrintToPdfOptions>
type Anchor = RcRef<PrintToPdfOptions>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for PrintToPdfOptions
impl RefMutFromWasmAbi for PrintToPdfOptions
Source§type Abi = WasmPtr<WasmRefCell<PrintToPdfOptions>>
type Abi = WasmPtr<WasmRefCell<PrintToPdfOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<PrintToPdfOptions>
type Anchor = RcRefMut<PrintToPdfOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl StructuralPartialEq for PrintToPdfOptions
impl SupportsConstructor for PrintToPdfOptions
impl SupportsInstanceProperty for PrintToPdfOptions
impl SupportsStaticProperty for PrintToPdfOptions
Source§impl TryFromJsValue for PrintToPdfOptions
impl TryFromJsValue for PrintToPdfOptions
Source§impl VectorFromWasmAbi for PrintToPdfOptions
impl VectorFromWasmAbi for PrintToPdfOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PrintToPdfOptions]>
Source§impl VectorIntoWasmAbi for PrintToPdfOptions
impl VectorIntoWasmAbi for PrintToPdfOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PrintToPdfOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for PrintToPdfOptions
impl WasmDescribeVector for PrintToPdfOptions
Auto Trait Implementations§
impl Freeze for PrintToPdfOptions
impl RefUnwindSafe for PrintToPdfOptions
impl Send for PrintToPdfOptions
impl Sync for PrintToPdfOptions
impl Unpin for PrintToPdfOptions
impl UnsafeUnpin for PrintToPdfOptions
impl UnwindSafe for PrintToPdfOptions
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.