pub struct LayoutObservation {
pub id: String,
pub bounds: Rect,
pub clip: Option<Rect>,
pub visible_fraction: f32,
pub clipped: bool,
pub viewport_contained: bool,
pub overlap_ids: Vec<String>,
}Fields§
§id: String§bounds: Rect§clip: Option<Rect>§visible_fraction: f32§clipped: bool§viewport_contained: bool§overlap_ids: Vec<String>Trait Implementations§
Source§impl Clone for LayoutObservation
impl Clone for LayoutObservation
Source§fn clone(&self) -> LayoutObservation
fn clone(&self) -> LayoutObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayoutObservation
impl Debug for LayoutObservation
Source§impl<'de> Deserialize<'de> for LayoutObservation
impl<'de> Deserialize<'de> for LayoutObservation
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 LayoutObservation
impl PartialEq for LayoutObservation
Source§impl Serialize for LayoutObservation
impl Serialize for LayoutObservation
impl StructuralPartialEq for LayoutObservation
Auto Trait Implementations§
impl Freeze for LayoutObservation
impl RefUnwindSafe for LayoutObservation
impl Send for LayoutObservation
impl Sync for LayoutObservation
impl Unpin for LayoutObservation
impl UnsafeUnpin for LayoutObservation
impl UnwindSafe for LayoutObservation
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