pub enum BlockOmission {
Empty,
Hidden,
InTable(usize),
Merged(usize),
Unmapped,
}Expand description
Why a SourceBlock produced no item.
Variants§
Empty
No text of its own once normalized (an empty <p>, a <li> whose
content is nested blocks).
Hidden
Hidden or non-content (display: none, hidden, <script>,
<style>, <noscript>), or inside such an element.
InTable(usize)
In a table whose cells were flattened: the text is in the grid of the table item (the index) rather than an item of its own.
Merged(usize)
Its text went into the items of an enclosing block (the index into
ItemTree::blocks): a <p> inside a <li> is the list item’s
text.
Unmapped
The walk produced nothing the backend can attribute.
Trait Implementations§
Source§impl Clone for BlockOmission
impl Clone for BlockOmission
impl Copy for BlockOmission
Source§impl Debug for BlockOmission
impl Debug for BlockOmission
impl Eq for BlockOmission
Source§impl PartialEq for BlockOmission
impl PartialEq for BlockOmission
impl StructuralPartialEq for BlockOmission
Auto Trait Implementations§
impl Freeze for BlockOmission
impl RefUnwindSafe for BlockOmission
impl Send for BlockOmission
impl Sync for BlockOmission
impl Unpin for BlockOmission
impl UnsafeUnpin for BlockOmission
impl UnwindSafe for BlockOmission
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.