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>
impl<Init: 'static> ExtensionBuildState<Init>
Sourcepub fn get_peer<C: 'static, O: 'static, I: 'static>(
&self,
name: &str,
) -> Result<Option<LexicalExtensionDependency<C, O, I>>, LexicalError>
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.
Sourcepub fn get_dependency<C: ExtensionConfigBase, O: 'static, I: 'static>(
&self,
dep: &Rc<LexicalExtension<C, O, I>>,
) -> Result<LexicalExtensionDependency<C, O, I>, LexicalError>
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.
Sourcepub fn get_init_result(&self) -> Result<Rc<Init>, LexicalError>
pub fn get_init_result(&self) -> Result<Rc<Init>, LexicalError>
getInitResult(): what this extension’s init returned.
pub fn get_direct_dependent_names(&self) -> Vec<String>
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>
impl<Init> Move for ExtensionBuildState<Init>
impl<Init> Unpin for ExtensionBuildState<Init>
impl<Init> UnsafeUnpin for ExtensionBuildState<Init>
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