Struct pepper::editor::Editor[][src]

pub struct Editor {
Show fields pub current_directory: PathBuf, pub config: Config, pub theme: Theme, pub syntaxes: SyntaxCollection, pub keymaps: KeyMapCollection, pub mode: Mode, pub buffers: BufferCollection, pub buffer_views: BufferViewCollection, pub word_database: WordDatabase, pub buffered_keys: BufferedKeys, pub recording_macro: Option<RegisterKey>, pub registers: RegisterCollection, pub read_line: ReadLine, pub picker: Picker, pub string_pool: StringPool, pub status_bar: StatusBar, pub commands: CommandManager, pub lsp: ClientManager, pub events: EditorEventQueue,
}

Fields

current_directory: PathBufconfig: Configtheme: Themesyntaxes: SyntaxCollectionkeymaps: KeyMapCollectionmode: Modebuffers: BufferCollectionbuffer_views: BufferViewCollectionword_database: WordDatabasebuffered_keys: BufferedKeysrecording_macro: Option<RegisterKey>registers: RegisterCollectionread_line: ReadLinepicker: Pickerstring_pool: StringPoolstatus_bar: StatusBarcommands: CommandManagerlsp: ClientManagerevents: EditorEventQueue

Implementations

impl Editor[src]

pub fn new(current_directory: PathBuf) -> Self[src]

pub fn buffer_view_handle_from_path(
    &mut self,
    client_handle: ClientHandle,
    path: &Path
) -> BufferViewHandle
[src]

pub fn execute_keys(
    &mut self,
    platform: &mut Platform,
    clients: &mut ClientManager,
    client_handle: ClientHandle,
    keys: KeysIterator
) -> EditorControlFlow
[src]

pub fn on_pre_render(&mut self, clients: &mut ClientManager) -> bool[src]

pub fn on_client_event(
    &mut self,
    platform: &mut Platform,
    clients: &mut ClientManager,
    event: ClientEvent<'_>
) -> EditorControlFlow
[src]

pub fn on_idle(&mut self, clients: &mut ClientManager, platform: &mut Platform)[src]

pub fn on_process_spawned(
    &mut self,
    platform: &mut Platform,
    tag: ProcessTag,
    handle: ProcessHandle
)
[src]

pub fn on_process_output(
    &mut self,
    platform: &mut Platform,
    clients: &mut ClientManager,
    tag: ProcessTag,
    bytes: &[u8]
)
[src]

pub fn on_process_exit(
    &mut self,
    platform: &mut Platform,
    clients: &mut ClientManager,
    tag: ProcessTag
)
[src]

pub fn trigger_event_handlers(
    &mut self,
    platform: &mut Platform,
    clients: &mut ClientManager
)
[src]

Auto Trait Implementations

impl RefUnwindSafe for Editor

impl Send for Editor

impl Sync for Editor

impl Unpin for Editor

impl UnwindSafe for Editor

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.