#[non_exhaustive]pub struct BorderLine {
pub kind: BorderLineKind,
pub width: HwpUnit,
pub color: Color,
}Expand description
One rendered border edge of a borderFill.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: BorderLineKindRender kind of this edge.
width: HwpUnitStroke width (HwpUnit::ZERO when BorderLineKind::None/Other).
color: ColorStroke color.
Implementations§
Source§impl BorderLine
impl BorderLine
Sourcepub fn new(kind: BorderLineKind, width: HwpUnit, color: Color) -> Self
pub fn new(kind: BorderLineKind, width: HwpUnit, color: Color) -> Self
Creates a border line.
Trait Implementations§
Source§impl Clone for BorderLine
impl Clone for BorderLine
Source§fn clone(&self) -> BorderLine
fn clone(&self) -> BorderLine
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 BorderLine
Source§impl Debug for BorderLine
impl Debug for BorderLine
Source§impl PartialEq for BorderLine
impl PartialEq for BorderLine
impl StructuralPartialEq for BorderLine
Auto Trait Implementations§
impl Freeze for BorderLine
impl RefUnwindSafe for BorderLine
impl Send for BorderLine
impl Sync for BorderLine
impl Unpin for BorderLine
impl UnsafeUnpin for BorderLine
impl UnwindSafe for BorderLine
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