#[repr(C)]pub struct StickyOffsetBounds {
pub min: f32,
pub max: f32,
}
Expand description
The minimum and maximum allowable offset for a sticky frame in a single dimension.
Fields§
§min: f32
The minimum offset for this frame, typically a negative value, which specifies how far in the negative direction the sticky frame can offset its contents in this dimension.
max: f32
The maximum offset for this frame, typically a positive value, which specifies how far in the positive direction the sticky frame can offset its contents in this dimension.
Implementations§
Source§impl StickyOffsetBounds
impl StickyOffsetBounds
pub fn new(min: f32, max: f32) -> StickyOffsetBounds
Trait Implementations§
Source§impl Clone for StickyOffsetBounds
impl Clone for StickyOffsetBounds
Source§fn clone(&self) -> StickyOffsetBounds
fn clone(&self) -> StickyOffsetBounds
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 StickyOffsetBounds
impl Debug for StickyOffsetBounds
Source§impl Default for StickyOffsetBounds
impl Default for StickyOffsetBounds
Source§fn default() -> StickyOffsetBounds
fn default() -> StickyOffsetBounds
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StickyOffsetBounds
impl<'de> Deserialize<'de> for StickyOffsetBounds
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StickyOffsetBounds
impl PartialEq for StickyOffsetBounds
Source§impl Peek for StickyOffsetBounds
impl Peek for StickyOffsetBounds
Source§impl Poke for StickyOffsetBounds
impl Poke for StickyOffsetBounds
Source§impl Serialize for StickyOffsetBounds
impl Serialize for StickyOffsetBounds
impl Copy for StickyOffsetBounds
impl StructuralPartialEq for StickyOffsetBounds
Auto Trait Implementations§
impl Freeze for StickyOffsetBounds
impl RefUnwindSafe for StickyOffsetBounds
impl Send for StickyOffsetBounds
impl Sync for StickyOffsetBounds
impl Unpin for StickyOffsetBounds
impl UnwindSafe for StickyOffsetBounds
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