#[repr(C)]pub struct StyleBorderBottomLeftRadius {
pub inner: PixelValue,
}Expand description
Represents a border-left-width attribute
Fields§
§inner: PixelValueImplementations§
Source§impl StyleBorderBottomLeftRadius
impl StyleBorderBottomLeftRadius
pub const fn zero() -> Self
Sourcepub const fn const_px(value: isize) -> Self
pub const fn const_px(value: isize) -> Self
Same as PixelValue::px(), but only accepts whole numbers,
since using f32 in const fn is not yet stabilized.
Sourcepub const fn const_em(value: isize) -> Self
pub const fn const_em(value: isize) -> Self
Same as PixelValue::em(), but only accepts whole numbers,
since using f32 in const fn is not yet stabilized.
Sourcepub const fn const_pt(value: isize) -> Self
pub const fn const_pt(value: isize) -> Self
Same as PixelValue::pt(), but only accepts whole numbers,
since using f32 in const fn is not yet stabilized.
Sourcepub const fn const_percent(value: isize) -> Self
pub const fn const_percent(value: isize) -> Self
Same as PixelValue::pt(), but only accepts whole numbers,
since using f32 in const fn is not yet stabilized.
pub const fn const_from_metric(metric: SizeMetric, value: isize) -> Self
pub fn px(value: f32) -> Self
pub fn em(value: f32) -> Self
pub fn pt(value: f32) -> Self
pub fn percent(value: f32) -> Self
pub fn from_metric(metric: SizeMetric, value: f32) -> Self
pub fn interpolate(&self, other: &Self, t: f32) -> Self
Source§impl StyleBorderBottomLeftRadius
impl StyleBorderBottomLeftRadius
pub fn scale_for_dpi(&mut self, scale_factor: f32)
Trait Implementations§
Source§impl Clone for StyleBorderBottomLeftRadius
impl Clone for StyleBorderBottomLeftRadius
Source§fn clone(&self) -> StyleBorderBottomLeftRadius
fn clone(&self) -> StyleBorderBottomLeftRadius
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 StyleBorderBottomLeftRadius
impl Debug for StyleBorderBottomLeftRadius
Source§impl Default for StyleBorderBottomLeftRadius
impl Default for StyleBorderBottomLeftRadius
Source§fn default() -> StyleBorderBottomLeftRadius
fn default() -> StyleBorderBottomLeftRadius
Returns the “default value” for a type. Read more
Source§impl From<StyleBorderBottomLeftRadius> for CssProperty
impl From<StyleBorderBottomLeftRadius> for CssProperty
Source§fn from(e: StyleBorderBottomLeftRadius) -> Self
fn from(e: StyleBorderBottomLeftRadius) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleBorderBottomLeftRadius
impl Hash for StyleBorderBottomLeftRadius
Source§impl Ord for StyleBorderBottomLeftRadius
impl Ord for StyleBorderBottomLeftRadius
Source§fn cmp(&self, other: &StyleBorderBottomLeftRadius) -> Ordering
fn cmp(&self, other: &StyleBorderBottomLeftRadius) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for StyleBorderBottomLeftRadius
impl PartialOrd for StyleBorderBottomLeftRadius
Source§impl PrintAsCssValue for StyleBorderBottomLeftRadius
impl PrintAsCssValue for StyleBorderBottomLeftRadius
fn print_as_css_value(&self) -> String
impl Copy for StyleBorderBottomLeftRadius
impl Eq for StyleBorderBottomLeftRadius
impl StructuralPartialEq for StyleBorderBottomLeftRadius
Auto Trait Implementations§
impl Freeze for StyleBorderBottomLeftRadius
impl RefUnwindSafe for StyleBorderBottomLeftRadius
impl Send for StyleBorderBottomLeftRadius
impl Sync for StyleBorderBottomLeftRadius
impl Unpin for StyleBorderBottomLeftRadius
impl UnwindSafe for StyleBorderBottomLeftRadius
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