pub struct StatusLineFmt { /* private fields */ }Expand description
A builder for StatusLines
This struct is created by the status! macro, and its purpose
is mainly to allow formatting of the StatusLine.
There is also the StatusLineFmt::above method, which places
the StatusLine above, rather than below.
Implementations§
Source§impl StatusLineFmt
impl StatusLineFmt
Sourcepub fn push_on(
self,
pa: &mut Pass,
push_target: &impl PushTarget,
) -> Handle<StatusLine>
pub fn push_on( self, pa: &mut Pass, push_target: &impl PushTarget, ) -> Handle<StatusLine>
Push the StatusLine
If the handle’s Widget is a Buffer, then this
StatusLine will refer to it when printing information about
Buffers. Otherwise, the StatusLine will print information
about the currently active Buffer.
Sourcepub fn above(self) -> Self
pub fn above(self) -> Self
Puts the StatusLine above, as opposed to below
Sourcepub fn below(self) -> Self
pub fn below(self) -> Self
Puts the StatusLine below, this is the default
Trait Implementations§
Source§impl Default for StatusLineFmt
impl Default for StatusLineFmt
Source§fn default() -> StatusLineFmt
fn default() -> StatusLineFmt
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatusLineFmt
impl !RefUnwindSafe for StatusLineFmt
impl Send for StatusLineFmt
impl !Sync for StatusLineFmt
impl Unpin for StatusLineFmt
impl !UnwindSafe for StatusLineFmt
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.