Skip to main content

TreesitterBashModule

Struct TreesitterBashModule 

Source
pub struct TreesitterBashModule;
Expand description

Treesitter Bash syntax module.

Follows the self-registration pattern:

  • Implements Module trait
  • Registers BashSyntaxFactory into SyntaxFactoryStore during init()

Implementations§

Source§

impl TreesitterBashModule

Source

pub const fn new() -> Self

Create a new Treesitter Bash module.

Trait Implementations§

Source§

impl Default for TreesitterBashModule

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Module for TreesitterBashModule

Source§

fn id(&self) -> ModuleId

Unique module identifier. Read more
Source§

fn name(&self) -> &'static str

Human-readable name.
Source§

fn version(&self) -> Version

Module version.
Source§

fn init(&mut self, ctx: &ModuleContext) -> ProbeResult

Initialize module (Linux equivalent: probe() function). Read more
Source§

fn exit(&mut self) -> Result<(), ModuleError>

Cleanup module (Linux equivalent: remove() function). Read more
Source§

fn api_version(&self) -> Version

Required kernel API version. Read more
Source§

fn dependencies(&self) -> Vec<ModuleId>

Required dependencies (must be loaded before this module). Read more
Source§

fn optional_dependencies(&self) -> Vec<ModuleId>

Optional dependencies (load before if available, but not required). Read more
Source§

fn extension_kinds(&self) -> &[&'static str]

Extension kinds pushed by this module via ExtensionStateBridge (#584). Read more
Source§

fn provides(&self) -> &[&'static str]

Capabilities provided by this module (#618). Read more
Source§

fn requires(&self) -> &[&'static str]

Capabilities required by this module (#618). Read more
Source§

fn version_constraints(&self) -> Vec<(ModuleId, &'static str)>

Version constraints on dependencies (#619). Read more
Source§

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)

Called when session focuses on a buffer. Read more
Source§

fn on_unload(&mut self) -> Result<(), ModuleError>

Called before module unload for cleanup. Read more
Source§

fn commands(&self) -> Vec<CommandRegistration>

Get command registrations.
Source§

fn keybindings(&self) -> Vec<KeybindingRegistration>

Get keybinding registrations.
Source§

fn event_handlers(&self) -> Vec<EventHandlerRegistration>

Get event handler registrations.
Source§

fn supports_hot_reload(&self) -> bool

Whether this module supports hot reload. Read more
Source§

fn save_state(&self) -> Option<Box<[u8]>>

Save module state for hot reload. Read more
Source§

fn restore_state(&mut self, _state: &[u8]) -> Result<(), ModuleError>

Restore module state after hot reload. Read more

Auto Trait Implementations§

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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 = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more