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