pub enum Level {
Normal(String),
Metadata(String),
Blank,
SingleWildcard,
MultiWildcard,
}
Variants§
Implementations§
Source§impl Level
impl Level
pub fn parse<T: AsRef<str>>(s: T) -> Result<Level, Error>
pub fn normal<T: AsRef<str>>(s: T) -> Level
pub fn metadata<T: AsRef<str>>(s: T) -> Level
pub fn value(&self) -> Option<&str>
pub fn is_normal(&self) -> bool
pub fn is_metadata(&self) -> bool
pub fn is_valid(&self) -> bool
Trait Implementations§
Source§impl DivAssign<Level> for Topic
impl DivAssign<Level> for Topic
Source§fn div_assign(&mut self, rhs: Level)
fn div_assign(&mut self, rhs: Level)
Performs the
/=
operation. Read moreimpl Eq for Level
impl Send for Level
impl StructuralPartialEq for Level
impl Sync for Level
Auto Trait Implementations§
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