#[repr(C)]pub struct ResolvedOffsets {
pub top: f32,
pub left: f32,
pub right: f32,
pub bottom: f32,
}Fields§
§top: f32§left: f32§right: f32§bottom: f32Implementations§
Source§impl ResolvedOffsets
impl ResolvedOffsets
pub const fn zero() -> Self
pub fn total_vertical(&self) -> f32
pub fn total_horizontal(&self) -> f32
Trait Implementations§
Source§impl Clone for ResolvedOffsets
impl Clone for ResolvedOffsets
Source§fn clone(&self) -> ResolvedOffsets
fn clone(&self) -> ResolvedOffsets
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 ResolvedOffsets
impl Debug for ResolvedOffsets
Source§impl Default for ResolvedOffsets
impl Default for ResolvedOffsets
Source§fn default() -> ResolvedOffsets
fn default() -> ResolvedOffsets
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResolvedOffsets
impl PartialEq for ResolvedOffsets
Source§impl PartialOrd for ResolvedOffsets
impl PartialOrd for ResolvedOffsets
impl Copy for ResolvedOffsets
impl StructuralPartialEq for ResolvedOffsets
Auto Trait Implementations§
impl Freeze for ResolvedOffsets
impl RefUnwindSafe for ResolvedOffsets
impl Send for ResolvedOffsets
impl Sync for ResolvedOffsets
impl Unpin for ResolvedOffsets
impl UnwindSafe for ResolvedOffsets
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§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