pub struct BorderStyle {
pub horizontal_radius: f32,
pub vertical_radius: f32,
pub width: f32,
pub dash: Option<(f32, f32)>,
}Expand description
Border style for annotations.
Fields§
§horizontal_radius: f32Horizontal corner radius
vertical_radius: f32Vertical corner radius
width: f32Border width
dash: Option<(f32, f32)>Dash pattern (if dashed)
Implementations§
Source§impl BorderStyle
impl BorderStyle
Sourcepub fn with_radius(self, radius: f32) -> Self
pub fn with_radius(self, radius: f32) -> Self
Set corner radius.
Sourcepub fn to_border_array(&self) -> Object
pub fn to_border_array(&self) -> Object
Convert to PDF Border array.
Trait Implementations§
Source§impl Clone for BorderStyle
impl Clone for BorderStyle
Source§fn clone(&self) -> BorderStyle
fn clone(&self) -> BorderStyle
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 Debug for BorderStyle
impl Debug for BorderStyle
Source§impl Default for BorderStyle
impl Default for BorderStyle
impl Copy for BorderStyle
Auto Trait Implementations§
impl Freeze for BorderStyle
impl RefUnwindSafe for BorderStyle
impl Send for BorderStyle
impl Sync for BorderStyle
impl Unpin for BorderStyle
impl UnwindSafe for BorderStyle
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