#[non_exhaustive]pub enum BorderWidth {
Medium,
Thick,
Thin,
Length(Length),
Raw(Raw),
}Expand description
A value of border-width.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Medium
medium.
Thick
thick.
Thin
thin.
Length(Length)
A length.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for BorderWidth
impl Clone for BorderWidth
Source§fn clone(&self) -> BorderWidth
fn clone(&self) -> BorderWidth
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 BorderWidth
impl Debug for BorderWidth
Source§impl Display for BorderWidth
impl Display for BorderWidth
Source§impl From<Length> for BorderWidth
impl From<Length> for BorderWidth
Source§impl From<Raw> for BorderWidth
impl From<Raw> for BorderWidth
Source§impl PartialEq for BorderWidth
impl PartialEq for BorderWidth
impl StructuralPartialEq for BorderWidth
Auto Trait Implementations§
impl Freeze for BorderWidth
impl RefUnwindSafe for BorderWidth
impl Send for BorderWidth
impl Sync for BorderWidth
impl Unpin for BorderWidth
impl UnsafeUnpin for BorderWidth
impl UnwindSafe for BorderWidth
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