pub struct TreesitterBashModule;Expand description
Treesitter Bash syntax module.
Follows the self-registration pattern:
- Implements
Moduletrait - Registers
BashSyntaxFactoryintoSyntaxFactoryStoreduringinit()
Implementations§
Trait Implementations§
Source§impl Default for TreesitterBashModule
impl Default for TreesitterBashModule
Source§impl Module for TreesitterBashModule
impl Module for TreesitterBashModule
Source§fn init(&mut self, ctx: &ModuleContext) -> ProbeResult
fn init(&mut self, ctx: &ModuleContext) -> ProbeResult
Initialize module (Linux equivalent:
probe() function). Read moreSource§fn exit(&mut self) -> Result<(), ModuleError>
fn exit(&mut self) -> Result<(), ModuleError>
Cleanup module (Linux equivalent:
remove() function). Read moreSource§fn api_version(&self) -> Version
fn api_version(&self) -> Version
Required kernel API version. Read more
Source§fn dependencies(&self) -> Vec<ModuleId>
fn dependencies(&self) -> Vec<ModuleId>
Required dependencies (must be loaded before this module). Read more
Source§fn optional_dependencies(&self) -> Vec<ModuleId>
fn optional_dependencies(&self) -> Vec<ModuleId>
Optional dependencies (load before if available, but not required). Read more
Source§fn extension_kinds(&self) -> &[&'static str]
fn extension_kinds(&self) -> &[&'static str]
Extension kinds pushed by this module via
ExtensionStateBridge (#584). Read moreSource§fn version_constraints(&self) -> Vec<(ModuleId, &'static str)>
fn version_constraints(&self) -> Vec<(ModuleId, &'static str)>
Version constraints on dependencies (#619). Read more
Source§fn on_all_loaded(&mut self, _ctx: &ModuleContext)
fn on_all_loaded(&mut self, _ctx: &ModuleContext)
Called after ALL modules are loaded (post-init phase). Read more
Source§fn on_buffer_focus(&mut self, _buffer_id: BufferId, _ctx: &ModuleContext)
fn on_buffer_focus(&mut self, _buffer_id: BufferId, _ctx: &ModuleContext)
Called when session focuses on a buffer. Read more
Source§fn on_unload(&mut self) -> Result<(), ModuleError>
fn on_unload(&mut self) -> Result<(), ModuleError>
Called before module unload for cleanup. Read more
Source§fn commands(&self) -> Vec<CommandRegistration>
fn commands(&self) -> Vec<CommandRegistration>
Get command registrations.
Source§fn keybindings(&self) -> Vec<KeybindingRegistration>
fn keybindings(&self) -> Vec<KeybindingRegistration>
Get keybinding registrations.
Source§fn event_handlers(&self) -> Vec<EventHandlerRegistration>
fn event_handlers(&self) -> Vec<EventHandlerRegistration>
Get event handler registrations.
Source§fn supports_hot_reload(&self) -> bool
fn supports_hot_reload(&self) -> bool
Whether this module supports hot reload. Read more
Source§fn restore_state(&mut self, _state: &[u8]) -> Result<(), ModuleError>
fn restore_state(&mut self, _state: &[u8]) -> Result<(), ModuleError>
Restore module state after hot reload. Read more
Auto Trait Implementations§
impl Freeze for TreesitterBashModule
impl RefUnwindSafe for TreesitterBashModule
impl Send for TreesitterBashModule
impl Sync for TreesitterBashModule
impl Unpin for TreesitterBashModule
impl UnsafeUnpin for TreesitterBashModule
impl UnwindSafe for TreesitterBashModule
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