pub struct ZStyle {
pub pattern: String,
pub name: String,
pub values: Vec<String>,
pub weight: u64,
pub eval: bool,
}Expand description
A single style definition
Fields§
§pattern: StringPattern to match context (e.g., ‘:completion:*:descriptions’)
name: StringStyle name (e.g., ‘format’, ‘menu’, ‘list-colors’)
values: Vec<String>Values for this style
weight: u64Compiled pattern weight for matching precedence Higher weight = more specific = matched first
eval: boolWhether values should be evaluated (zstyle -e)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZStyle
impl RefUnwindSafe for ZStyle
impl Send for ZStyle
impl Sync for ZStyle
impl Unpin for ZStyle
impl UnsafeUnpin for ZStyle
impl UnwindSafe for ZStyle
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more