pub struct LayoutInset {
pub left: Option<Animated<LayoutLength>>,
pub top: Option<Animated<LayoutLength>>,
pub right: Option<Animated<LayoutLength>>,
pub bottom: Option<Animated<LayoutLength>>,
}Expand description
Where an absolute box lies in its parent’s padding box. A missing side is
auto: with neither left nor right, the box keeps its place in the
flow on that axis.
Fields§
§left: Option<Animated<LayoutLength>>Distance from the parent’s left padding edge.
top: Option<Animated<LayoutLength>>Distance from the parent’s top padding edge.
right: Option<Animated<LayoutLength>>Distance from the parent’s right padding edge.
bottom: Option<Animated<LayoutLength>>Distance from the parent’s bottom padding edge.
Trait Implementations§
Source§impl Clone for LayoutInset
impl Clone for LayoutInset
Source§impl Debug for LayoutInset
impl Debug for LayoutInset
Source§impl Default for LayoutInset
impl Default for LayoutInset
Source§impl<'de> Deserialize<'de> for LayoutInset
impl<'de> Deserialize<'de> for LayoutInset
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 LayoutInset
impl PartialEq for LayoutInset
Source§impl Serialize for LayoutInset
impl Serialize for LayoutInset
impl StructuralPartialEq for LayoutInset
Auto Trait Implementations§
impl Freeze for LayoutInset
impl RefUnwindSafe for LayoutInset
impl Send for LayoutInset
impl Sync for LayoutInset
impl Unpin for LayoutInset
impl UnsafeUnpin for LayoutInset
impl UnwindSafe for LayoutInset
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