pub struct WorkspaceSegment;Trait Implementations§
Source§impl Segment for WorkspaceSegment
impl Segment for WorkspaceSegment
Source§fn data_deps(&self) -> &'static [DataDep]
fn data_deps(&self) -> &'static [DataDep]
Declare which data sources this segment reads. The runtime
computes the union across all enabled segments and lazy-fetches
only those sources. Defaults to the stdin payload only; segments
that read other sources must override. See
docs/specs/data-fetching.md §Segment dependency declaration. Read moreSource§fn render(&self, ctx: &DataContext) -> RenderResult
fn render(&self, ctx: &DataContext) -> RenderResult
Render this segment for the given context. Read more
Source§fn defaults(&self) -> SegmentDefaults
fn defaults(&self) -> SegmentDefaults
Layout defaults (priority, width bounds, separator preference).
User config may override each field via
OverriddenSegment.Auto Trait Implementations§
impl Freeze for WorkspaceSegment
impl RefUnwindSafe for WorkspaceSegment
impl Send for WorkspaceSegment
impl Sync for WorkspaceSegment
impl Unpin for WorkspaceSegment
impl UnsafeUnpin for WorkspaceSegment
impl UnwindSafe for WorkspaceSegment
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