Skip to main content

ExtensionBuildState

Struct ExtensionBuildState 

Source
pub struct ExtensionBuildState<Init> { /* private fields */ }
Expand description

ExtensionBuildState: what build can ask of the builder; its dependencies are built before it.

Implementations§

Source§

impl<Init: 'static> ExtensionBuildState<Init>

Source

pub fn get_peer<C: 'static, O: 'static, I: 'static>( &self, name: &str, ) -> Result<Option<LexicalExtensionDependency<C, O, I>>, LexicalError>

getPeer(name): the peer named name, if the editor has it, as an extension of the given types.

Source

pub fn get_dependency<C: ExtensionConfigBase, O: 'static, I: 'static>( &self, dep: &Rc<LexicalExtension<C, O, I>>, ) -> Result<LexicalExtensionDependency<C, O, I>, LexicalError>

getDependency(dep): a dependency’s config, init result and output.

Source

pub fn get_init_result(&self) -> Result<Rc<Init>, LexicalError>

getInitResult(): what this extension’s init returned.

Source

pub fn get_direct_dependent_names(&self) -> Vec<String>

Source

pub fn get_peer_name_set(&self) -> Vec<String>

Auto Trait Implementations§

§

impl<Init> !RefUnwindSafe for ExtensionBuildState<Init>

§

impl<Init> !Send for ExtensionBuildState<Init>

§

impl<Init> !Sync for ExtensionBuildState<Init>

§

impl<Init> !UnwindSafe for ExtensionBuildState<Init>

§

impl<Init> Forget for ExtensionBuildState<Init>

§

impl<Init> Freeze for ExtensionBuildState<Init>
where PhantomData<fn() -> Init>: Freeze,

§

impl<Init> Move for ExtensionBuildState<Init>

§

impl<Init> Unpin for ExtensionBuildState<Init>
where PhantomData<fn() -> Init>: Unpin,

§

impl<Init> UnsafeUnpin for ExtensionBuildState<Init>
where PhantomData<fn() -> Init>: UnsafeUnpin,

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.