#[non_exhaustive]pub enum PresenceIR {
Visible,
Hidden,
Inactive,
Invisible,
Unknown,
}Expand description
Visibility/presence state.
Mirrors the XFA presence attribute plus an explicit Unknown for
snapshots taken before resolution.
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.
Visible
Default; rendered.
Hidden
Hidden via presence="hidden".
Inactive
Inactive (not rendered, not data-bound).
Invisible
Invisible (skipped during rendering but still in the tree).
Unknown
Presence not determined yet at the snapshot point.
Implementations§
Trait Implementations§
Source§impl Clone for PresenceIR
impl Clone for PresenceIR
Source§fn clone(&self) -> PresenceIR
fn clone(&self) -> PresenceIR
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 PresenceIR
impl Debug for PresenceIR
Source§impl Default for PresenceIR
impl Default for PresenceIR
Source§fn default() -> PresenceIR
fn default() -> PresenceIR
Returns the “default value” for a type. Read more
Source§impl Ord for PresenceIR
impl Ord for PresenceIR
Source§fn cmp(&self, other: &PresenceIR) -> Ordering
fn cmp(&self, other: &PresenceIR) -> 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 PresenceIR
impl PartialEq for PresenceIR
Source§fn eq(&self, other: &PresenceIR) -> bool
fn eq(&self, other: &PresenceIR) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PresenceIR
impl PartialOrd for PresenceIR
impl Copy for PresenceIR
impl Eq for PresenceIR
impl StructuralPartialEq for PresenceIR
Auto Trait Implementations§
impl Freeze for PresenceIR
impl RefUnwindSafe for PresenceIR
impl Send for PresenceIR
impl Sync for PresenceIR
impl Unpin for PresenceIR
impl UnsafeUnpin for PresenceIR
impl UnwindSafe for PresenceIR
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