pub enum BorderRadius {
Px(f32),
Rem(f32),
Percent(f32),
Named(String),
}Expand description
Re-export core tailwind-rs functionality Represents a border radius value in the theme system
Variants§
Px(f32)
Pixel value
Rem(f32)
Rem value
Percent(f32)
Percentage value
Named(String)
Named border radius reference
Implementations§
Source§impl BorderRadius
impl BorderRadius
Sourcepub fn px(value: f32) -> BorderRadius
pub fn px(value: f32) -> BorderRadius
Create a new pixel border radius
Sourcepub fn rem(value: f32) -> BorderRadius
pub fn rem(value: f32) -> BorderRadius
Create a new rem border radius
Sourcepub fn percent(value: f32) -> BorderRadius
pub fn percent(value: f32) -> BorderRadius
Create a new percentage border radius
Sourcepub fn named(name: impl Into<String>) -> BorderRadius
pub fn named(name: impl Into<String>) -> BorderRadius
Create a new named border radius
Trait Implementations§
Source§impl Clone for BorderRadius
impl Clone for BorderRadius
Source§fn clone(&self) -> BorderRadius
fn clone(&self) -> BorderRadius
Returns a duplicate of the value. Read more
1.0.0 · 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 BorderRadius
impl Debug for BorderRadius
Source§impl<'de> Deserialize<'de> for BorderRadius
impl<'de> Deserialize<'de> for BorderRadius
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BorderRadius, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BorderRadius, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for BorderRadius
impl FromStr for BorderRadius
Source§type Err = TailwindError
type Err = TailwindError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<BorderRadius, TailwindError>
fn from_str(s: &str) -> Result<BorderRadius, TailwindError>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for BorderRadius
impl PartialEq for BorderRadius
Source§impl Serialize for BorderRadius
impl Serialize for BorderRadius
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BorderRadius
Auto Trait Implementations§
impl Freeze for BorderRadius
impl RefUnwindSafe for BorderRadius
impl Send for BorderRadius
impl Sync for BorderRadius
impl Unpin for BorderRadius
impl UnwindSafe for BorderRadius
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