Fields§
§left: f32§top: f32§right: f32§bottom: f32Implementations§
source§impl Thickness
impl Thickness
pub fn zero() -> Self
pub fn uniform(v: f32) -> Self
pub fn bottom(v: f32) -> Self
pub fn top(v: f32) -> Self
pub fn left(v: f32) -> Self
pub fn right(v: f32) -> Self
pub fn top_right(v: f32) -> Self
pub fn top_left(v: f32) -> Self
pub fn bottom_right(v: f32) -> Self
pub fn bottom_left(v: f32) -> Self
pub fn top_bottom(v: f32) -> Self
pub fn left_right(v: f32) -> Self
pub fn offset(&self) -> Vector2<f32>
sourcepub fn axes_margin(&self) -> Vector2<f32>
pub fn axes_margin(&self) -> Vector2<f32>
Returns margin for each axis.
Trait Implementations§
source§impl PartialEq<Thickness> for Thickness
impl PartialEq<Thickness> for Thickness
impl Copy for Thickness
impl StructuralPartialEq for Thickness
Auto Trait Implementations§
impl RefUnwindSafe for Thickness
impl Send for Thickness
impl Sync for Thickness
impl Unpin for Thickness
impl UnwindSafe for Thickness
Blanket Implementations§
source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere
T: 'static,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.