#[non_exhaustive]pub enum BorderImageWidth {
Auto,
Length(Length),
Percentage(Percentage),
Number(f64),
Raw(Raw),
}Expand description
A value of border-image-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.
Auto
auto.
Length(Length)
A length.
Percentage(Percentage)
A percentage.
Number(f64)
A number.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for BorderImageWidth
impl Clone for BorderImageWidth
Source§fn clone(&self) -> BorderImageWidth
fn clone(&self) -> BorderImageWidth
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 BorderImageWidth
impl Debug for BorderImageWidth
Source§impl Display for BorderImageWidth
impl Display for BorderImageWidth
Source§impl From<Length> for BorderImageWidth
impl From<Length> for BorderImageWidth
Source§impl From<Percentage> for BorderImageWidth
impl From<Percentage> for BorderImageWidth
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
Source§impl From<Raw> for BorderImageWidth
impl From<Raw> for BorderImageWidth
Source§impl From<f64> for BorderImageWidth
impl From<f64> for BorderImageWidth
Source§impl From<i32> for BorderImageWidth
impl From<i32> for BorderImageWidth
Source§impl PartialEq for BorderImageWidth
impl PartialEq for BorderImageWidth
impl StructuralPartialEq for BorderImageWidth
Auto Trait Implementations§
impl Freeze for BorderImageWidth
impl RefUnwindSafe for BorderImageWidth
impl Send for BorderImageWidth
impl Sync for BorderImageWidth
impl Unpin for BorderImageWidth
impl UnsafeUnpin for BorderImageWidth
impl UnwindSafe for BorderImageWidth
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