Skip to main content

Submission

Struct Submission 

Source
pub struct Submission<'a> { /* private fields */ }

Implementations§

Source§

impl Submission<'_>

Source

pub fn tree(&self) -> &Memory

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn supports(&self, mutation: &Mutation) -> bool

Source

pub fn prepare(&mut self, mutation: &Mutation) -> Result<PreparedOp, Error>

Source

pub fn discard_last(&mut self)

Source

pub fn finish(self, accepted: usize) -> Receipt

Trait Implementations§

Source§

impl Drop for Submission<'_>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for Submission<'a>

§

impl<'a> !Send for Submission<'a>

§

impl<'a> !Sync for Submission<'a>

§

impl<'a> !UnwindSafe for Submission<'a>

§

impl<'a> Forget for Submission<'a>

§

impl<'a> Freeze for Submission<'a>
where &'a mut Memory: Freeze, *const u8 is !null: Freeze, PhantomData<Record>: Freeze, PhantomData<(NodeId, Option<(u32, bool)>)>: Freeze, PhantomData<(NodeId, Node)>: Freeze, &'a mut HashMap<NodeId, u64>: Freeze, &'a mut u64: Freeze, &'a mut Receipt: Freeze, &'a mut Plans: Freeze, PhantomData<(u64, Keys)>: Freeze, PhantomData<NodeId>: Freeze, PhantomData<(NodeId, u64)>: Freeze,

§

impl<'a> Move for Submission<'a>

§

impl<'a> Unpin for Submission<'a>
where &'a mut Memory: Unpin, *const u8 is !null: Unpin, Rc<RichDocument>: Unpin, Box<GraphicProps>: Unpin, Box<FileConfig>: Unpin, Box<Style>: Unpin, Box<Semantics>: Unpin, Box<Descriptor>: Unpin, Rc<Vec<SelectEntry>>: Unpin, Rc<Declaration>: Unpin, Box<Fields>: Unpin, Box<Indexed>: Unpin, Box<Requests>: Unpin, Box<State>: Unpin, Box<State>: Unpin, &'a mut HashMap<NodeId, u64>: Unpin, &'a mut u64: Unpin, &'a mut Receipt: Unpin, &'a mut Plans: Unpin,

§

impl<'a> UnsafeUnpin for Submission<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.