[−][src]Struct fozzie::matcher::Match
Fields
choice: &'a Choice<'a>
Implementations
impl<'a> Match<'a>
[src]
pub fn is_match(query: &[char], choice: &Choice<'_>) -> bool
[src]
pub fn new(query: &[char], choice: &'a Choice<'_>) -> Option<Self>
[src]
pub fn draw(&self, selected: bool, show_scores: bool) -> String
[src]
Trait Implementations
impl<'a> Display for Match<'a>
[src]
impl<'a> Eq for Match<'a>
[src]
impl<'a> Ord for Match<'a>
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<'a> PartialEq<Match<'a>> for Match<'a>
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialOrd<Match<'a>> for Match<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Match<'a>
[src]
impl<'a> Send for Match<'a>
[src]
impl<'a> Sync for Match<'a>
[src]
impl<'a> Unpin for Match<'a>
[src]
impl<'a> UnwindSafe for Match<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,