Struct webrender_api::display_item::StickyOffsetBounds
source · #[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§fn eq(&self, other: &StickyOffsetBounds) -> bool
fn eq(&self, other: &StickyOffsetBounds) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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