pub enum ClipLength {
Px(f32),
Percent(f32),
}Expand description
A length value that can be pixels or a percentage
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ClipLength
impl Clone for ClipLength
Source§fn clone(&self) -> ClipLength
fn clone(&self) -> ClipLength
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 ClipLength
impl Debug for ClipLength
Source§impl Default for ClipLength
impl Default for ClipLength
Source§impl PartialEq for ClipLength
impl PartialEq for ClipLength
impl Copy for ClipLength
impl StructuralPartialEq for ClipLength
Auto Trait Implementations§
impl Freeze for ClipLength
impl RefUnwindSafe for ClipLength
impl Send for ClipLength
impl Sync for ClipLength
impl Unpin for ClipLength
impl UnsafeUnpin for ClipLength
impl UnwindSafe for ClipLength
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