#[repr(C)]pub enum RadialGradientSize {
ClosestSide = 0,
ClosestCorner = 1,
FarthestSide = 2,
FarthestCorner = 3,
}Variants§
Implementations§
Source§impl RadialGradientSize
impl RadialGradientSize
pub fn get_size( &self, parent_rect: LayoutRect, gradient_center: LayoutPosition, ) -> LayoutSize
Trait Implementations§
Source§impl Clone for RadialGradientSize
impl Clone for RadialGradientSize
Source§fn clone(&self) -> RadialGradientSize
fn clone(&self) -> RadialGradientSize
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 RadialGradientSize
impl Debug for RadialGradientSize
Source§impl Default for RadialGradientSize
impl Default for RadialGradientSize
Source§impl Hash for RadialGradientSize
impl Hash for RadialGradientSize
Source§impl Ord for RadialGradientSize
impl Ord for RadialGradientSize
Source§fn cmp(&self, other: &RadialGradientSize) -> Ordering
fn cmp(&self, other: &RadialGradientSize) -> 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 PartialEq for RadialGradientSize
impl PartialEq for RadialGradientSize
Source§impl PartialOrd for RadialGradientSize
impl PartialOrd for RadialGradientSize
impl Eq for RadialGradientSize
impl StructuralPartialEq for RadialGradientSize
Auto Trait Implementations§
impl Freeze for RadialGradientSize
impl RefUnwindSafe for RadialGradientSize
impl Send for RadialGradientSize
impl Sync for RadialGradientSize
impl Unpin for RadialGradientSize
impl UnwindSafe for RadialGradientSize
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