pub enum ExpGlobToken {
Glob(GlobMatcher),
StringList(Vec<String>),
String(String),
}Variants§
Implementations§
Source§impl ExpGlobToken
impl ExpGlobToken
pub fn new_glob(token: &str) -> BuckyResult<Self>
pub fn new_string(token: String) -> Self
pub fn new_string_list(tokens: Vec<String>) -> Self
pub fn is_glob(&self) -> bool
pub fn as_glob(&self) -> &GlobMatcher
pub fn eq(left: &Self, right: &Self) -> bool
Trait Implementations§
Source§impl Clone for ExpGlobToken
impl Clone for ExpGlobToken
Source§fn clone(&self) -> ExpGlobToken
fn clone(&self) -> ExpGlobToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpGlobToken
impl Debug for ExpGlobToken
Source§impl Default for ExpGlobToken
impl Default for ExpGlobToken
Source§impl Ord for ExpGlobToken
impl Ord for ExpGlobToken
Source§impl PartialEq for ExpGlobToken
impl PartialEq for ExpGlobToken
Source§impl PartialOrd for ExpGlobToken
impl PartialOrd for ExpGlobToken
impl Eq for ExpGlobToken
Auto Trait Implementations§
impl Freeze for ExpGlobToken
impl RefUnwindSafe for ExpGlobToken
impl Send for ExpGlobToken
impl Sync for ExpGlobToken
impl Unpin for ExpGlobToken
impl UnwindSafe for ExpGlobToken
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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