pub enum SourceFileAdapter {
Claude,
Codex,
Gemini,
Hermes,
OpenClaw,
}Expand description
Adapters Lifeloop ships source-file rendering for. Mirrors
HostAdapter plus Gemini, which has a source file but no host
integration assets in host_assets.rs today.
Variants§
Implementations§
Source§impl SourceFileAdapter
impl SourceFileAdapter
pub const ALL: &'static [Self]
pub fn as_str(self) -> &'static str
pub fn from_id(name: &str) -> Option<Self>
Sourcepub fn relative_path(self) -> &'static str
pub fn relative_path(self) -> &'static str
The path Lifeloop renders the managed section into, relative to the repository root the caller writes against. Stable identifier only; the caller resolves filesystem location.
Sourcepub fn from_host_adapter(host: HostAdapter) -> Self
pub fn from_host_adapter(host: HostAdapter) -> Self
Convert from the host-asset adapter enum. None for adapters
that have a source file but no host integration asset surface
(currently: Gemini).
Trait Implementations§
Source§impl Clone for SourceFileAdapter
impl Clone for SourceFileAdapter
Source§fn clone(&self) -> SourceFileAdapter
fn clone(&self) -> SourceFileAdapter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceFileAdapter
impl Debug for SourceFileAdapter
Source§impl Hash for SourceFileAdapter
impl Hash for SourceFileAdapter
Source§impl PartialEq for SourceFileAdapter
impl PartialEq for SourceFileAdapter
Source§fn eq(&self, other: &SourceFileAdapter) -> bool
fn eq(&self, other: &SourceFileAdapter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SourceFileAdapter
impl Eq for SourceFileAdapter
impl StructuralPartialEq for SourceFileAdapter
Auto Trait Implementations§
impl Freeze for SourceFileAdapter
impl RefUnwindSafe for SourceFileAdapter
impl Send for SourceFileAdapter
impl Sync for SourceFileAdapter
impl Unpin for SourceFileAdapter
impl UnsafeUnpin for SourceFileAdapter
impl UnwindSafe for SourceFileAdapter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.