Expand description
Tuple Fields
0: Vec<MenuItem>
Implementations
Trait Implementations
sourceimpl Display for Menu
impl Display for Menu
This provides the main functionality of this crate: rendering a BitBar plugin.
Note that the output this generates already includes a trailing newline, so it should be used with print!
instead of println!
.
sourceimpl<A: Into<MenuItem>> Extend<A> for Menu
impl<A: Into<MenuItem>> Extend<A> for Menu
sourcefn extend<T: IntoIterator<Item = A>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = A>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl<C: TryInto<Command>> From<NotificationCommandError<C>> for Menu where
C::Error: Error,
impl<C: TryInto<Command>> From<NotificationCommandError<C>> for Menu where
C::Error: Error,
sourcefn from(e: NotificationCommandError<C>) -> Menu
fn from(e: NotificationCommandError<C>) -> Menu
Converts to this type from the input type.
sourceimpl From<PluginNameError> for Menu
impl From<PluginNameError> for Menu
sourcefn from(e: PluginNameError) -> Menu
fn from(e: PluginNameError) -> Menu
Converts to this type from the input type.
sourceimpl From<VersionCheckError> for Menu
impl From<VersionCheckError> for Menu
sourcefn from(e: VersionCheckError) -> Menu
fn from(e: VersionCheckError) -> Menu
Converts to this type from the input type.
sourceimpl<A: Into<MenuItem>> FromIterator<A> for Menu
impl<A: Into<MenuItem>> FromIterator<A> for Menu
sourcefn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Menu
fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Menu
Creates a value from an iterator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Menu
impl Send for Menu
impl Sync for Menu
impl Unpin for Menu
impl UnwindSafe for Menu
Blanket Implementations
sourceimpl<'a, T> AsyncMainOutput<'a> for T where
T: 'a + MainOutput,
impl<'a, T> AsyncMainOutput<'a> for T where
T: 'a + MainOutput,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MainOutput for T where
T: Into<Menu>,
impl<T> MainOutput for T where
T: Into<Menu>,
sourcefn main_output(self, Option<Image>)
fn main_output(self, Option<Image>)
Displays this value as a menu, using the given template image in case of an error.
impl<T> NoneValue for T where
T: Default,
impl<T> NoneValue for T where
T: Default,
type NoneType = T
fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more