pub struct MatchCommand {
pub type: CommandType,
pub name: MatchName,
}Fields§
§type: CommandType§name: MatchNameImplementations§
Source§impl MatchCommand
impl MatchCommand
pub fn is_match(&self, ty: CommandType, name: &str) -> bool
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for MatchCommand
impl<'__de, __Context> BorrowDecode<'__de, __Context> for MatchCommand
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for MatchCommand
impl Clone for MatchCommand
Source§fn clone(&self) -> MatchCommand
fn clone(&self) -> MatchCommand
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 MatchCommand
impl Debug for MatchCommand
Source§impl<__Context> Decode<__Context> for MatchCommand
impl<__Context> Decode<__Context> for MatchCommand
Source§impl Encode for MatchCommand
impl Encode for MatchCommand
Source§impl Ord for MatchCommand
impl Ord for MatchCommand
Source§fn cmp(&self, other: &MatchCommand) -> Ordering
fn cmp(&self, other: &MatchCommand) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MatchCommand
impl PartialEq for MatchCommand
Source§impl PartialOrd for MatchCommand
impl PartialOrd for MatchCommand
impl Eq for MatchCommand
impl StructuralPartialEq for MatchCommand
Auto Trait Implementations§
impl Freeze for MatchCommand
impl RefUnwindSafe for MatchCommand
impl Send for MatchCommand
impl Sync for MatchCommand
impl Unpin for MatchCommand
impl UnwindSafe for MatchCommand
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.