pub enum OverflowBehavior {
Visible,
Hidden,
Clip,
Scroll,
Auto,
}Expand description
Describes how overflow content should be handled for an element.
This maps to the CSS overflow-x and overflow-y properties and determines
whether content that exceeds the element’s bounds should be visible, clipped,
or scrollable.
Variants§
Visible
Content is not clipped and may render outside the element’s box (default)
Hidden
Content is clipped to the padding box, no scrollbars provided
Clip
Content is clipped to the padding box (CSS overflow: clip)
Scroll
Content is clipped and scrollbars are always shown
Auto
Content is clipped and scrollbars appear only when needed
Implementations§
Source§impl OverflowBehavior
impl OverflowBehavior
Sourcepub fn is_clipped(&self) -> bool
pub fn is_clipped(&self) -> bool
Returns true if this overflow behavior clips content.
All behaviors except Visible result in content being clipped
to the element’s padding box.
Trait Implementations§
Source§impl Clone for OverflowBehavior
impl Clone for OverflowBehavior
Source§fn clone(&self) -> OverflowBehavior
fn clone(&self) -> OverflowBehavior
Returns a duplicate 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 OverflowBehavior
impl Debug for OverflowBehavior
Source§impl PartialEq for OverflowBehavior
impl PartialEq for OverflowBehavior
impl Copy for OverflowBehavior
impl Eq for OverflowBehavior
impl StructuralPartialEq for OverflowBehavior
Auto Trait Implementations§
impl Freeze for OverflowBehavior
impl RefUnwindSafe for OverflowBehavior
impl Send for OverflowBehavior
impl Sync for OverflowBehavior
impl Unpin for OverflowBehavior
impl UnwindSafe for OverflowBehavior
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more