#[non_exhaustive]pub enum OverflowState {
None,
Split,
DeferredToNextPage,
Clipped,
Unknown,
}Expand description
Overflow / split state of a node at IR-capture time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No overflow.
Split
Container split across pages.
DeferredToNextPage
Deferred entirely to the next page.
Clipped
Clipped to its parent’s content area.
Unknown
Overflow status not determined yet at the snapshot point.
Implementations§
Trait Implementations§
Source§impl Clone for OverflowState
impl Clone for OverflowState
Source§fn clone(&self) -> OverflowState
fn clone(&self) -> OverflowState
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 OverflowState
impl Debug for OverflowState
Source§impl Default for OverflowState
impl Default for OverflowState
Source§fn default() -> OverflowState
fn default() -> OverflowState
Returns the “default value” for a type. Read more
Source§impl Ord for OverflowState
impl Ord for OverflowState
Source§fn cmp(&self, other: &OverflowState) -> Ordering
fn cmp(&self, other: &OverflowState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OverflowState
impl PartialEq for OverflowState
Source§fn eq(&self, other: &OverflowState) -> bool
fn eq(&self, other: &OverflowState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OverflowState
impl PartialOrd for OverflowState
impl Copy for OverflowState
impl Eq for OverflowState
impl StructuralPartialEq for OverflowState
Auto Trait Implementations§
impl Freeze for OverflowState
impl RefUnwindSafe for OverflowState
impl Send for OverflowState
impl Sync for OverflowState
impl Unpin for OverflowState
impl UnsafeUnpin for OverflowState
impl UnwindSafe for OverflowState
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