pub trait ReadonlySession {
Show 15 methods
// Required methods
fn cwd(&self) -> &Path;
fn session_id(&self) -> &str;
fn session_file(&self) -> Option<&Path>;
fn header(&self) -> &SessionHeader;
fn session_name(&self) -> Option<String>;
fn leaf_id(&self) -> Option<&EntryId>;
fn entry(&self, id: &EntryId) -> Option<&SessionEntry>;
fn children(&self, parent: Option<&EntryId>) -> Vec<&SessionEntry>;
fn label(&self, id: &EntryId) -> Option<&str>;
fn branch(&self, from: Option<&EntryId>) -> Vec<&SessionEntry>;
fn entries(&self) -> &[SessionEntry];
fn tree(&self) -> Vec<SessionTreeNode>;
fn build_context_entries(&self) -> Vec<SessionEntry>;
fn build_session_projection(&self) -> SessionProjection;
fn build_session_context(&self) -> SessionContext;
}Expand description
Read-only view handed to extensions (extension-api §5.2).
Required Methods§
Sourcefn session_id(&self) -> &str
fn session_id(&self) -> &str
Session id.
Sourcefn session_file(&self) -> Option<&Path>
fn session_file(&self) -> Option<&Path>
Session file, when persisted.
Sourcefn header(&self) -> &SessionHeader
fn header(&self) -> &SessionHeader
Header.
Sourcefn session_name(&self) -> Option<String>
fn session_name(&self) -> Option<String>
Latest session name.
Sourcefn entry(&self, id: &EntryId) -> Option<&SessionEntry>
fn entry(&self, id: &EntryId) -> Option<&SessionEntry>
Entry by id.
Sourcefn entries(&self) -> &[SessionEntry]
fn entries(&self) -> &[SessionEntry]
All entries in file order.
Sourcefn tree(&self) -> Vec<SessionTreeNode>
fn tree(&self) -> Vec<SessionTreeNode>
Tree view.
Sourcefn build_context_entries(&self) -> Vec<SessionEntry>
fn build_context_entries(&self) -> Vec<SessionEntry>
Context-selected entries at the leaf.
Sourcefn build_session_projection(&self) -> SessionProjection
fn build_session_projection(&self) -> SessionProjection
Projection at the leaf.
Sourcefn build_session_context(&self) -> SessionContext
fn build_session_context(&self) -> SessionContext
Context at the leaf.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".