BorderRadius

Struct BorderRadius 

Source
pub struct BorderRadius<T>(pub T)
where
    T: Clone + Debug + Display + PartialEq + UnitDataType<Self>;
Expand description

Tuple Fields§

§0: T

Implementations§

Source§

impl BorderRadius<BorderRadiusValue>

Source

pub fn initial() -> Self

Source

pub fn inherit() -> Self

Source

pub fn revert() -> Self

Source

pub fn revert_layer() -> Self

Source

pub fn unset() -> Self

Trait Implementations§

Source§

impl AbsoluteLengthStorage for BorderRadius<BorderRadiusValue>

Source§

fn absolute_length(value: AbsoluteLength) -> Self
where Self: Sized,

Source§

impl CapHeightStorage for BorderRadius<BorderRadiusValue>

Source§

fn cap(value: f64) -> Self
where Self: Sized,

Use a CSS unit "cap" (Cap) as value to store. Read more
Source§

impl CentimeterStorage for BorderRadius<BorderRadiusValue>

Source§

fn cm(value: f64) -> Self
where Self: Sized,

Use a CSS unit "cm" (Cm) as value to store. Read more
Source§

impl CharSizeStorage for BorderRadius<BorderRadiusValue>

Source§

fn ch(value: isize) -> Self
where Self: Sized,

Use a CSS unit "ch" (Ch) as value to store. Read more
Source§

impl<T> Clone for BorderRadius<T>
where T: Clone + Debug + Display + PartialEq + UnitDataType<Self> + Clone,

Source§

fn clone(&self) -> BorderRadius<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ContainerLengthStorage for BorderRadius<BorderRadiusValue>

Source§

fn container_length(value: ContainerLength) -> Self
where Self: Sized,

Source§

impl ContainerQueryBlockStorage for BorderRadius<BorderRadiusValue>

Source§

fn cqb(value: f64) -> Self
where Self: Sized,

Use a CSS unit "cqb" (Cqb) as value to store. Read more
Source§

impl ContainerQueryHeightStorage for BorderRadius<BorderRadiusValue>

Source§

fn cqh(value: f64) -> Self
where Self: Sized,

Use a CSS unit "cqh" (Cqh) as value to store. Read more
Source§

impl ContainerQueryInlineStorage for BorderRadius<BorderRadiusValue>

Source§

fn cqi(value: f64) -> Self
where Self: Sized,

Use a CSS unit "cqi" (Cqi) as value to store. Read more
Source§

impl ContainerQueryMaxStorage for BorderRadius<BorderRadiusValue>

Source§

fn cqmax(value: f64) -> Self
where Self: Sized,

Use a CSS unit "cqmax" (Cqmax) as value to store. Read more
Source§

impl ContainerQueryMinStorage for BorderRadius<BorderRadiusValue>

Source§

fn cqmin(value: f64) -> Self
where Self: Sized,

Use a CSS unit "cqmin" (Cqmin) as value to store. Read more
Source§

impl ContainerQueryWidthStorage for BorderRadius<BorderRadiusValue>

Source§

fn cqw(value: f64) -> Self
where Self: Sized,

Use a CSS unit "cqw" (Cqw) as value to store. Read more
Source§

impl<T> Debug for BorderRadius<T>
where T: Clone + Debug + Display + PartialEq + UnitDataType<Self> + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BorderRadius<BorderRadiusValue>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T> Display for BorderRadius<T>
where T: Clone + Debug + Display + PartialEq + UnitDataType<Self>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DynamicViewportBlockStorage for BorderRadius<BorderRadiusValue>

Source§

fn dvb(value: f64) -> Self
where Self: Sized,

Use a CSS unit "dvb" (Dvb) as value to store. Read more
Source§

impl DynamicViewportHeightStorage for BorderRadius<BorderRadiusValue>

Source§

fn dvh(value: f64) -> Self
where Self: Sized,

Use a CSS unit "dvh" (Dvh) as value to store. Read more
Source§

impl DynamicViewportInlineStorage for BorderRadius<BorderRadiusValue>

Source§

fn dvi(value: f64) -> Self
where Self: Sized,

Use a CSS unit "dvi" (Dvi) as value to store. Read more
Source§

impl DynamicViewportMaxStorage for BorderRadius<BorderRadiusValue>

Source§

fn dvmax(value: f64) -> Self
where Self: Sized,

Use a CSS unit "dvmax" (Dvmax) as value to store. Read more
Source§

impl DynamicViewportMinStorage for BorderRadius<BorderRadiusValue>

Source§

fn dvmin(value: f64) -> Self
where Self: Sized,

Use a CSS unit "dvmin" (Dvmin) as value to store. Read more
Source§

impl DynamicViewportWidthStorage for BorderRadius<BorderRadiusValue>

Source§

fn dvw(value: f64) -> Self
where Self: Sized,

Use a CSS unit "dvw" (Dvw) as value to store. Read more
Source§

impl EmStorage for BorderRadius<BorderRadiusValue>

Source§

fn em(value: f64) -> Self
where Self: Sized,

Use a CSS unit "em" (Em) as value to store. Read more
Source§

impl ExStorage for BorderRadius<BorderRadiusValue>

Source§

fn ex(value: f64) -> Self
where Self: Sized,

Use a CSS unit "ex" (Ex) as value to store. Read more
Source§

impl FontLengthStorage for BorderRadius<BorderRadiusValue>

Source§

fn font_length(value: FontLength) -> Self
where Self: Sized,

Source§

impl<T> From<T> for BorderRadius<BorderRadiusValue>

Source§

fn from(value: T) -> Self

Converts to this type from the input type.
Source§

impl<T> From<T> for BorderRadius<T>
where T: Clone + Debug + Display + PartialEq + UnitDataType<Self>,

Source§

fn from(value: T) -> Self

Converts to this type from the input type.
Source§

impl IcStorage for BorderRadius<BorderRadiusValue>

Source§

fn ic(value: isize) -> Self
where Self: Sized,

Use a CSS unit "ic" (Ic) as value to store. Read more
Source§

impl InchStorage for BorderRadius<BorderRadiusValue>

Source§

fn in(value: f64) -> Self
where Self: Sized,

Use a CSS unit "in" (In) as value to store. Read more
Source§

impl LargeViewportBlockStorage for BorderRadius<BorderRadiusValue>

Source§

fn lvb(value: f64) -> Self
where Self: Sized,

Use a CSS unit "lvb" (Lvb) as value to store. Read more
Source§

impl LargeViewportHeightStorage for BorderRadius<BorderRadiusValue>

Source§

fn lvh(value: f64) -> Self
where Self: Sized,

Use a CSS unit "lvh" (Lvh) as value to store. Read more
Source§

impl LargeViewportInlineStorage for BorderRadius<BorderRadiusValue>

Source§

fn lvi(value: f64) -> Self
where Self: Sized,

Use a CSS unit "lvi" (Lvi) as value to store. Read more
Source§

impl LargeViewportMaxStorage for BorderRadius<BorderRadiusValue>

Source§

fn lvmax(value: f64) -> Self
where Self: Sized,

Use a CSS unit "lvmax" (Lvmax) as value to store. Read more
Source§

impl LargeViewportMinStorage for BorderRadius<BorderRadiusValue>

Source§

fn lvmin(value: f64) -> Self
where Self: Sized,

Use a CSS unit "lvmin" (Lvmin) as value to store. Read more
Source§

impl LargeViewportWidthStorage for BorderRadius<BorderRadiusValue>

Source§

fn lvw(value: f64) -> Self
where Self: Sized,

Use a CSS unit "lvw" (Lvw) as value to store. Read more
Source§

impl LengthPercentageStorage for BorderRadius<BorderRadiusValue>

Source§

fn length_percentage(value: LengthPercentage) -> Self
where Self: Sized,

Source§

impl LengthStorage for BorderRadius<BorderRadiusValue>

Source§

fn length(value: Length) -> Self
where Self: Sized,

Source§

impl LineHeightStorage for BorderRadius<BorderRadiusValue>

Source§

fn lh(value: f64) -> Self
where Self: Sized,

Use a CSS unit "lh" (Lh) as value to store. Read more
Source§

impl MillimeterStorage for BorderRadius<BorderRadiusValue>

Source§

fn mm(value: f64) -> Self
where Self: Sized,

Use a CSS unit "mm" (Mm) as value to store. Read more
Source§

impl<T> PartialEq for BorderRadius<T>

Source§

fn eq(&self, other: &BorderRadius<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PercentageStorage for BorderRadius<BorderRadiusValue>

Source§

fn percentage(value: f64) -> Self
where Self: Sized,

Source§

fn full() -> Self
where Self: Sized,

Source§

fn reset() -> Self
where Self: Sized,

Source§

impl PicaStorage for BorderRadius<BorderRadiusValue>

Source§

fn pc(value: isize) -> Self
where Self: Sized,

Use a CSS unit "pc" (Pc) as value to store. Read more
Source§

impl PixelStorage for BorderRadius<BorderRadiusValue>

Source§

fn px(value: isize) -> Self
where Self: Sized,

Use a CSS unit "px" (Px) as value to store. Read more
Source§

impl PointStorage for BorderRadius<BorderRadiusValue>

Source§

fn pt(value: isize) -> Self
where Self: Sized,

Use a CSS unit "pt" (Pt) as value to store. Read more
Source§

impl<T> Property for BorderRadius<T>
where T: Clone + Debug + Display + PartialEq + UnitDataType<Self>,

Source§

fn declaration(&self) -> String

Returns the stringified property name with its value as a CSS declaration to be used within a declaration block. Read more
Source§

impl<T> PropertyName for BorderRadius<T>
where T: Clone + Debug + Display + PartialEq + UnitDataType<Self>,

Source§

fn property_name<'a>(&self) -> &'a str

Source§

impl QuarterOfMillimeterStorage for BorderRadius<BorderRadiusValue>

Source§

fn q(value: isize) -> Self
where Self: Sized,

Use a CSS unit "q" (Q) as value to store. Read more
Source§

impl RelativeCapHeightStorage for BorderRadius<BorderRadiusValue>

Source§

fn rcap(value: f64) -> Self
where Self: Sized,

Use a CSS unit "rcap" (Rcap) as value to store. Read more
Source§

impl RelativeCharSizeStorage for BorderRadius<BorderRadiusValue>

Source§

fn rch(value: isize) -> Self
where Self: Sized,

Use a CSS unit "rch" (Rch) as value to store. Read more
Source§

impl RelativeEmStorage for BorderRadius<BorderRadiusValue>

Source§

fn rem(value: f64) -> Self
where Self: Sized,

Use a CSS unit "rem" (Rem) as value to store. Read more
Source§

impl RelativeExStorage for BorderRadius<BorderRadiusValue>

Source§

fn rex(value: f64) -> Self
where Self: Sized,

Use a CSS unit "rex" (Rex) as value to store. Read more
Source§

impl RelativeIcStorage for BorderRadius<BorderRadiusValue>

Source§

fn ric(value: isize) -> Self
where Self: Sized,

Use a CSS unit "ric" (Ric) as value to store. Read more
Source§

impl RelativeLengthStorage for BorderRadius<BorderRadiusValue>

Source§

fn relative_length(value: RelativeLength) -> Self
where Self: Sized,

Source§

impl RelativeLineHeightStorage for BorderRadius<BorderRadiusValue>

Source§

fn rlh(value: f64) -> Self
where Self: Sized,

Use a CSS unit "rlh" (Rlh) as value to store. Read more
Source§

impl SmallViewportBlockStorage for BorderRadius<BorderRadiusValue>

Source§

fn svb(value: f64) -> Self
where Self: Sized,

Use a CSS unit "svb" (Svb) as value to store. Read more
Source§

impl SmallViewportHeightStorage for BorderRadius<BorderRadiusValue>

Source§

fn svh(value: f64) -> Self
where Self: Sized,

Use a CSS unit "svh" (Svh) as value to store. Read more
Source§

impl SmallViewportInlineStorage for BorderRadius<BorderRadiusValue>

Source§

fn svi(value: f64) -> Self
where Self: Sized,

Use a CSS unit "svi" (Svi) as value to store. Read more
Source§

impl SmallViewportMaxStorage for BorderRadius<BorderRadiusValue>

Source§

fn svmax(value: f64) -> Self
where Self: Sized,

Use a CSS unit "svmax" (Svmax) as value to store. Read more
Source§

impl SmallViewportMinStorage for BorderRadius<BorderRadiusValue>

Source§

fn svmin(value: f64) -> Self
where Self: Sized,

Use a CSS unit "svmin" (Svmin) as value to store. Read more
Source§

impl SmallViewportWidthStorage for BorderRadius<BorderRadiusValue>

Source§

fn svw(value: f64) -> Self
where Self: Sized,

Use a CSS unit "svw" (Svw) as value to store. Read more
Source§

impl ViewportBlockStorage for BorderRadius<BorderRadiusValue>

Source§

fn vb(value: f64) -> Self
where Self: Sized,

Use a CSS unit "vb" (Vb) as value to store. Read more
Source§

impl ViewportHeightStorage for BorderRadius<BorderRadiusValue>

Source§

fn vh(value: f64) -> Self
where Self: Sized,

Use a CSS unit "vh" (Vh) as value to store. Read more
Source§

impl ViewportInlineStorage for BorderRadius<BorderRadiusValue>

Source§

fn vi(value: f64) -> Self
where Self: Sized,

Use a CSS unit "vi" (Vi) as value to store. Read more
Source§

impl ViewportLengthStorage for BorderRadius<BorderRadiusValue>

Source§

fn viewport_length(value: ViewportLength) -> Self
where Self: Sized,

Source§

impl ViewportMaxStorage for BorderRadius<BorderRadiusValue>

Source§

fn vmax(value: f64) -> Self
where Self: Sized,

Use a CSS unit "vmax" (Vmax) as value to store. Read more
Source§

impl ViewportMinStorage for BorderRadius<BorderRadiusValue>

Source§

fn vmin(value: f64) -> Self
where Self: Sized,

Use a CSS unit "vmin" (Vmin) as value to store. Read more
Source§

impl ViewportWidthStorage for BorderRadius<BorderRadiusValue>

Source§

fn vw(value: f64) -> Self
where Self: Sized,

Use a CSS unit "vw" (Vw) as value to store. Read more
Source§

impl<T> StructuralPartialEq for BorderRadius<T>
where T: Clone + Debug + Display + PartialEq + UnitDataType<Self>,

Source§

impl UnitDataType<BorderRadius<BorderRadiusValue>> for BorderRadiusValue

Source§

impl UnitDataType<BorderRadius<Nothing>> for Nothing

Source§

impl<T> UnitDataType<BorderRadius<Var<T>>> for Var<T>

Source§

impl<T> UnitDataTypeContainer<T> for BorderRadius<T>
where T: Clone + Debug + Display + PartialEq + UnitDataType<Self>,

Auto Trait Implementations§

§

impl<T> Freeze for BorderRadius<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for BorderRadius<T>
where T: RefUnwindSafe,

§

impl<T> Send for BorderRadius<T>
where T: Send,

§

impl<T> Sync for BorderRadius<T>
where T: Sync,

§

impl<T> Unpin for BorderRadius<T>
where T: Unpin,

§

impl<T> UnwindSafe for BorderRadius<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.