[][src]Struct cur::Cur

pub struct Cur { /* fields omitted */ }

Searches for Scents.

Methods

impl Cur[src]

pub const fn with_scent(scent: Scent) -> Self[src]

Creates a Cur with scent.

pub fn alert(&self, area: &str) -> bool[src]

Returns if scent matches cover.

Note that match only occurs if scent matches with all of area.

pub fn point(&self, env: &str) -> Option<usize>[src]

Searches for scent starting at each index of env, returning the first successful index.

None indicates there was no successful scent detection.

Trait Implementations

impl Debug for Cur[src]

impl Copy for Cur[src]

impl Clone for Cur[src]

Auto Trait Implementations

impl Unpin for Cur

impl Send for Cur

impl Sync for Cur

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.