pub struct PrintTicket { /* private fields */ }Expand description
Represents a print ticket.
Implementations§
Source§impl PrintTicket
impl PrintTicket
Sourcepub fn to_dev_mode(
&self,
device: &PrinterDevice,
) -> Result<Vec<u8>, ToDevModeError>
pub fn to_dev_mode( &self, device: &PrinterDevice, ) -> Result<Vec<u8>, ToDevModeError>
Convert the print ticket to DEVMODE data.
Trait Implementations§
Source§impl Clone for PrintTicket
impl Clone for PrintTicket
Source§fn clone(&self) -> PrintTicket
fn clone(&self) -> PrintTicket
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 PrintTicket
impl Debug for PrintTicket
Source§impl Default for PrintTicket
impl Default for PrintTicket
Source§impl From<Copies> for PrintTicket
impl From<Copies> for PrintTicket
Source§impl From<PrintTicketDocument> for PrintTicket
impl From<PrintTicketDocument> for PrintTicket
Source§fn from(value: PrintTicketDocument) -> Self
fn from(value: PrintTicketDocument) -> Self
Converts to this type from the input type.
Source§impl<T> From<T> for PrintTicketwhere
T: FeatureOptionPack,
impl<T> From<T> for PrintTicketwhere
T: FeatureOptionPack,
Auto Trait Implementations§
impl Freeze for PrintTicket
impl RefUnwindSafe for PrintTicket
impl Send for PrintTicket
impl Sync for PrintTicket
impl Unpin for PrintTicket
impl UnsafeUnpin for PrintTicket
impl UnwindSafe for PrintTicket
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