pub struct VAnchor(/* private fields */);Expand description
Vertical anchor flags — how a widget sizes and positions itself vertically within the slot assigned by its parent.
Mirrors HAnchor with BOTTOM / TOP instead of LEFT / RIGHT.
Y-up convention: BOTTOM is the visually lower edge (small Y), TOP is
the visually upper edge (large Y).
Implementations§
Source§impl VAnchor
impl VAnchor
pub const ABSOLUTE: Self
pub const BOTTOM: Self
pub const CENTER: Self
pub const TOP: Self
Sourcepub const MAX_FIT_OR_STRETCH: Self
pub const MAX_FIT_OR_STRETCH: Self
Take the larger of Fit or Stretch.
Sourcepub const MIN_FIT_OR_STRETCH: Self
pub const MIN_FIT_OR_STRETCH: Self
Take the smaller of Fit or Stretch.
Sourcepub fn is_stretch(self) -> bool
pub fn is_stretch(self) -> bool
Returns true if this anchor causes vertical stretching.
Trait Implementations§
impl Copy for VAnchor
impl Eq for VAnchor
impl StructuralPartialEq for VAnchor
Auto Trait Implementations§
impl Freeze for VAnchor
impl RefUnwindSafe for VAnchor
impl Send for VAnchor
impl Sync for VAnchor
impl Unpin for VAnchor
impl UnsafeUnpin for VAnchor
impl UnwindSafe for VAnchor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().