pub struct PdfBorderInfo {
pub style: i32,
pub line_width: f64,
pub dash_pattern: Option<Vec<f64>>,
}Expand description
Snapshot of PDFBorder state.
Fields§
§style: i32Mirrors the corresponding PDFBorder field.
line_width: f64Mirrors the corresponding PDFBorder field.
dash_pattern: Option<Vec<f64>>Mirrors the corresponding PDFBorder field.
Implementations§
Source§impl PdfBorderInfo
impl PdfBorderInfo
Sourcepub fn style_enum(&self) -> Option<PdfBorderStyle>
pub fn style_enum(&self) -> Option<PdfBorderStyle>
Converts the stored raw PDFKit value into a typed enum.
Trait Implementations§
Source§impl Clone for PdfBorderInfo
impl Clone for PdfBorderInfo
Source§fn clone(&self) -> PdfBorderInfo
fn clone(&self) -> PdfBorderInfo
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 PdfBorderInfo
impl Debug for PdfBorderInfo
Source§impl<'de> Deserialize<'de> for PdfBorderInfo
impl<'de> Deserialize<'de> for PdfBorderInfo
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
Auto Trait Implementations§
impl Freeze for PdfBorderInfo
impl RefUnwindSafe for PdfBorderInfo
impl Send for PdfBorderInfo
impl Sync for PdfBorderInfo
impl Unpin for PdfBorderInfo
impl UnsafeUnpin for PdfBorderInfo
impl UnwindSafe for PdfBorderInfo
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