Skip to main content

Mapper

Struct Mapper 

Source
pub struct Mapper { /* private fields */ }

Implementations§

Source§

impl Mapper

Source

pub fn submission(&mut self) -> Result<Submission<'_>, Error>

Source§

impl Mapper

Source

pub fn new(runtime: RuntimeId) -> Self

Source

pub fn tree(&self) -> &Memory

Source

pub fn admit_file_action(&mut self, action: Action) -> Result<(), Error>

Admit a host action identity without exposing mutable descriptors.

Source

pub fn finish_files( &mut self, node: NodeId, document: FileDocumentId, event: &FileEvent, ) -> Result<bool, Error>

Source

pub fn admit_clipboard(&mut self, action: Action) -> Result<(), Error>

Source

pub fn finish_clipboard( &mut self, node: NodeId, request: u64, revision: u64, ) -> Result<bool, Error>

Source

pub fn key(&self, id: NodeId) -> Option<u64>

Source

pub fn receipt(&self) -> Receipt

Last successful prefix, including when a later mutation failed.

Source

pub fn html(&self) -> Result<String, Error>

Source

pub fn canonicalize(&mut self) -> Result<Vec<(u64, u64)>, Error>

Final snapshot keys follow the logical tree, independent of asynchronous completion/creation order. Hidden/unplaced nodes get unique trailing keys; only visible tree keys participate in HTML adoption. A streaming consumer uses the returned pairs to relabel metadata without remounting.

Source

pub fn apply( &mut self, mutations: &[Mutation], sink: &mut impl Sink, ) -> Result<Receipt, Error>

Auto Trait Implementations§

§

impl !RefUnwindSafe for Mapper

§

impl !Send for Mapper

§

impl !Sync for Mapper

§

impl !UnwindSafe for Mapper

§

impl Forget for Mapper

§

impl Freeze for Mapper

§

impl Move for Mapper

§

impl Unpin for Mapper
where *const u8 is !null: Unpin, Box<[Option<(NodeId, Node)>]>: Unpin, Box<Indexed>: Unpin, Box<RichSnapshot>: Unpin, Box<FileEvent>: Unpin, Box<FileChunk>: Unpin, Box<FilePreview>: Unpin, &'static str: Unpin, *const LeafNode<NodeId, usize> is !null: Unpin, Box<(NodeId, usize)>: Unpin, *const RcInner<Declaration> is !null: Unpin, Rc<PlanShape>: Unpin,

§

impl UnsafeUnpin for Mapper

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.