pub enum ShapePredicate {
Empty,
SingleH1Only,
SingleImageOnly,
SingleBlockquoteOnly,
}Expand description
Closed predicate set in v1. Extending this is intentionally a code change, not a config knob — keeps the surface area small until a real need surfaces.
Variants§
Trait Implementations§
Source§impl Clone for ShapePredicate
impl Clone for ShapePredicate
Source§fn clone(&self) -> ShapePredicate
fn clone(&self) -> ShapePredicate
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 moreimpl Copy for ShapePredicate
Source§impl Debug for ShapePredicate
impl Debug for ShapePredicate
Source§impl<'de> Deserialize<'de> for ShapePredicate
impl<'de> Deserialize<'de> for ShapePredicate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ShapePredicate
Source§impl PartialEq for ShapePredicate
impl PartialEq for ShapePredicate
Source§impl Serialize for ShapePredicate
impl Serialize for ShapePredicate
impl StructuralPartialEq for ShapePredicate
Auto Trait Implementations§
impl Freeze for ShapePredicate
impl RefUnwindSafe for ShapePredicate
impl Send for ShapePredicate
impl Sync for ShapePredicate
impl Unpin for ShapePredicate
impl UnsafeUnpin for ShapePredicate
impl UnwindSafe for ShapePredicate
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