pub struct ResolvedOffsets {
pub top: f32,
pub left: f32,
pub right: f32,
pub bottom: f32,
}
Fields§
§top: f32
§left: f32
§right: f32
§bottom: f32
Implementations§
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 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 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§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
)