[][src]Trait like::ILike

pub trait ILike {
    type Err;
    fn ilike(&self, pattern: &Self) -> Result<bool, Self::Err>;

    fn not_ilike(&self, pattern: &Self) -> Result<bool, Self::Err> { ... }
}

SQL ilike style pattern matching.

ilike is a case-insensitive version of like style pattern matching; make the input and pattern to be lowercase and do comparison. Other internal implementation are the same as like.

Associated Types

type Err

The associated error which can be returned from pattern matching.

Loading content...

Required methods

fn ilike(&self, pattern: &Self) -> Result<bool, Self::Err>

Check if self match a pattern.

Returns true if self matches the supplied pattern.

Loading content...

Provided methods

fn not_ilike(&self, pattern: &Self) -> Result<bool, Self::Err>

Check if self match a pattern.

Returns true if self doesn't match the supplied pattern.

Loading content...

Implementations on Foreign Types

impl ILike for str[src]

type Err = InvalidPatternError

impl ILike for [u8][src]

type Err = InvalidPatternError

Loading content...

Implementors

Loading content...