Struct lay_rs::types::BorderRadius
source · #[repr(C)]pub struct BorderRadius {
pub top_left: f32,
pub top_right: f32,
pub bottom_right: f32,
pub bottom_left: f32,
}
Fields§
§top_left: f32
§top_right: f32
§bottom_right: f32
§bottom_left: f32
Implementations§
source§impl BorderRadius
impl BorderRadius
pub fn new_single(r: f32) -> Self
Trait Implementations§
source§impl Add for BorderRadius
impl Add for BorderRadius
source§type Output = BorderRadius
type Output = BorderRadius
The resulting type after applying the
+
operator.source§fn add(self, other: BorderRadius) -> BorderRadius
fn add(self, other: BorderRadius) -> BorderRadius
Performs the
+
operation. Read moresource§impl Clone for BorderRadius
impl Clone for BorderRadius
source§fn clone(&self) -> BorderRadius
fn clone(&self) -> BorderRadius
Returns a copy 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 Default for BorderRadius
impl Default for BorderRadius
source§impl Diff for BorderRadius
impl Diff for BorderRadius
source§type Repr = BorderRadiusDiff
type Repr = BorderRadiusDiff
The type associated with the structs’ difference
§fn diff_custom<D>(&self, other: &Self, visitor: &D) -> <D as Differ<Self>>::Reprwhere
D: Differ<Self>,
fn diff_custom<D>(&self, other: &Self, visitor: &D) -> <D as Differ<Self>>::Reprwhere
D: Differ<Self>,
Produces a diff between two structs, using an external diffing implementation
§fn apply_custom<D>(&mut self, diff: &<D as Differ<Self>>::Repr, visitor: &D)where
D: Differ<Self>,
fn apply_custom<D>(&mut self, diff: &<D as Differ<Self>>::Repr, visitor: &D)where
D: Differ<Self>,
Applies the diff directly to the struct, using an external diffing implementation
§fn apply_new(&self, diff: &Self::Repr) -> Self
fn apply_new(&self, diff: &Self::Repr) -> Self
Applies the diff to the struct and produces a new struct
§fn apply_new_custom<D>(
&self,
diff: &<D as Differ<Self>>::Repr,
visitor: &D,
) -> Selfwhere
D: Differ<Self>,
fn apply_new_custom<D>(
&self,
diff: &<D as Differ<Self>>::Repr,
visitor: &D,
) -> Selfwhere
D: Differ<Self>,
Applies the diff to the struct and produces a new struct, using an external diffing implementation
source§impl From<BorderRadius> for (BorderRadius, Option<Transition>)
impl From<BorderRadius> for (BorderRadius, Option<Transition>)
source§fn from(val: BorderRadius) -> Self
fn from(val: BorderRadius) -> Self
Converts to this type from the input type.
source§impl From<f32> for BorderRadius
impl From<f32> for BorderRadius
source§impl Into<[Point; 4]> for BorderRadius
impl Into<[Point; 4]> for BorderRadius
source§impl Mul<f32> for BorderRadius
impl Mul<f32> for BorderRadius
source§type Output = BorderRadius
type Output = BorderRadius
The resulting type after applying the
*
operator.source§impl PartialEq for BorderRadius
impl PartialEq for BorderRadius
source§impl Serialize for BorderRadius
impl Serialize for BorderRadius
impl Copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<V> Interpolate for Vwhere
V: Interpolable,
impl<V> Interpolate for Vwhere
V: Interpolable,
fn interpolate(&self, other: &V, f: f32) -> V
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more