pub enum EditablePolicy {
FormEditable,
RawIslandOnly,
DeleteOnly,
}Expand description
Whether (and how) Form Mode may edit a block.
Per the safe-fallback invariant, the indexer prefers false negatives:
when uncertain, a block is downgraded to RawIslandOnly.
Variants§
FormEditable
Structured semantic edits are allowed (e.g. paragraph text, heading level).
RawIslandOnly
Only raw-text island editing is allowed; the source is shown verbatim.
DeleteOnly
Visual block with delete action only (e.g. horizontal rule).
Trait Implementations§
Source§impl Clone for EditablePolicy
impl Clone for EditablePolicy
Source§fn clone(&self) -> EditablePolicy
fn clone(&self) -> EditablePolicy
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 EditablePolicy
Source§impl Debug for EditablePolicy
impl Debug for EditablePolicy
Source§impl<'de> Deserialize<'de> for EditablePolicy
impl<'de> Deserialize<'de> for EditablePolicy
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 EditablePolicy
Source§impl PartialEq for EditablePolicy
impl PartialEq for EditablePolicy
Source§fn eq(&self, other: &EditablePolicy) -> bool
fn eq(&self, other: &EditablePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EditablePolicy
impl Serialize for EditablePolicy
impl StructuralPartialEq for EditablePolicy
Auto Trait Implementations§
impl Freeze for EditablePolicy
impl RefUnwindSafe for EditablePolicy
impl Send for EditablePolicy
impl Sync for EditablePolicy
impl Unpin for EditablePolicy
impl UnsafeUnpin for EditablePolicy
impl UnwindSafe for EditablePolicy
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