Enum gpui2::AbsoluteLength
source · pub enum AbsoluteLength {
Pixels(Pixels),
Rems(Rems),
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for AbsoluteLength
impl Clone for AbsoluteLength
source§fn clone(&self) -> AbsoluteLength
fn clone(&self) -> AbsoluteLength
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 AbsoluteLength
impl Debug for AbsoluteLength
source§impl Default for AbsoluteLength
impl Default for AbsoluteLength
source§impl From<AbsoluteLength> for DefiniteLength
impl From<AbsoluteLength> for DefiniteLength
source§fn from(length: AbsoluteLength) -> Self
fn from(length: AbsoluteLength) -> Self
Converts to this type from the input type.
source§impl From<AbsoluteLength> for Length
impl From<AbsoluteLength> for Length
source§fn from(length: AbsoluteLength) -> Self
fn from(length: AbsoluteLength) -> Self
Converts to this type from the input type.
source§impl From<Pixels> for AbsoluteLength
impl From<Pixels> for AbsoluteLength
source§impl From<Rems> for AbsoluteLength
impl From<Rems> for AbsoluteLength
source§impl Neg for AbsoluteLength
impl Neg for AbsoluteLength
§type Output = AbsoluteLength
type Output = AbsoluteLength
The resulting type after applying the
-
operator.source§fn neg(self) -> AbsoluteLength
fn neg(self) -> AbsoluteLength
Performs the unary
-
operation. Read moreimpl Copy for AbsoluteLength
Auto Trait Implementations§
impl RefUnwindSafe for AbsoluteLength
impl Send for AbsoluteLength
impl Sync for AbsoluteLength
impl Unpin for AbsoluteLength
impl UnwindSafe for AbsoluteLength
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