pub struct ExtensionInitState { /* private fields */ }Expand description
ExtensionInitState: what init can ask of the builder about other
extensions, whose configs are merged before it runs.
Implementations§
Source§impl ExtensionInitState
impl ExtensionInitState
Sourcepub fn get_peer<Config: 'static>(
&self,
name: &str,
) -> Result<Option<Rc<Config>>, LexicalError>
pub fn get_peer<Config: 'static>( &self, name: &str, ) -> Result<Option<Rc<Config>>, LexicalError>
getPeer(name)?.config: the config of the peer named name, if the
editor has it, as a Config.
Sourcepub fn get_dependency<C: ExtensionConfigBase, O: 'static, I: 'static>(
&self,
dep: &Rc<LexicalExtension<C, O, I>>,
) -> Result<Rc<C>, LexicalError>
pub fn get_dependency<C: ExtensionConfigBase, O: 'static, I: 'static>( &self, dep: &Rc<LexicalExtension<C, O, I>>, ) -> Result<Rc<C>, LexicalError>
getDependency(dep).config: the config of a dependency.
Sourcepub fn get_direct_dependent_names(&self) -> Vec<String>
pub fn get_direct_dependent_names(&self) -> Vec<String>
getDirectDependentNames(): the names of the extensions that depend
on this one directly, in the order they were added.
Sourcepub fn get_peer_name_set(&self) -> Vec<String>
pub fn get_peer_name_set(&self) -> Vec<String>
getPeerNameSet(): the names of this extension’s peer dependencies.
Auto Trait Implementations§
impl !RefUnwindSafe for ExtensionInitState
impl !Send for ExtensionInitState
impl !Sync for ExtensionInitState
impl !UnwindSafe for ExtensionInitState
impl Forget for ExtensionInitState
impl Freeze for ExtensionInitState
impl Move for ExtensionInitState
impl Unpin for ExtensionInitState
impl UnsafeUnpin for ExtensionInitState
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