pub struct FormProjection {
pub document_revision: u64,
pub blocks: Vec<FormBlock>,
}Expand description
The Form Mode projection (external design §23.10). Disposable;
rebuilt from the MarkdownIndex after every accepted mutation.
Fields§
§document_revision: u64§blocks: Vec<FormBlock>Implementations§
Source§impl FormProjection
impl FormProjection
Sourcepub fn build(text: &str, index: &MarkdownIndex) -> Self
pub fn build(text: &str, index: &MarkdownIndex) -> Self
Builds the projection for index over canonical text.
Trait Implementations§
Source§impl Clone for FormProjection
impl Clone for FormProjection
Source§fn clone(&self) -> FormProjection
fn clone(&self) -> FormProjection
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 FormProjection
impl Debug for FormProjection
Source§impl<'de> Deserialize<'de> for FormProjection
impl<'de> Deserialize<'de> for FormProjection
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 FormProjection
Source§impl PartialEq for FormProjection
impl PartialEq for FormProjection
Source§fn eq(&self, other: &FormProjection) -> bool
fn eq(&self, other: &FormProjection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FormProjection
impl Serialize for FormProjection
impl StructuralPartialEq for FormProjection
Auto Trait Implementations§
impl Freeze for FormProjection
impl RefUnwindSafe for FormProjection
impl Send for FormProjection
impl Sync for FormProjection
impl Unpin for FormProjection
impl UnsafeUnpin for FormProjection
impl UnwindSafe for FormProjection
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