pub struct PdfColor {
pub red: f64,
pub green: f64,
pub blue: f64,
pub alpha: f64,
}Expand description
Wraps RGBA color values used by PDFKit.
Fields§
§red: f64Wraps the red component used by PDFKit color APIs.
green: f64Wraps the green component used by PDFKit color APIs.
blue: f64Wraps the blue component used by PDFKit color APIs.
alpha: f64Wraps the alpha component used by PDFKit color APIs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PdfColor
impl<'de> Deserialize<'de> for PdfColor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for PdfColor
impl StructuralPartialEq for PdfColor
Auto Trait Implementations§
impl Freeze for PdfColor
impl RefUnwindSafe for PdfColor
impl Send for PdfColor
impl Sync for PdfColor
impl Unpin for PdfColor
impl UnsafeUnpin for PdfColor
impl UnwindSafe for PdfColor
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