Trait Compare

Source
pub trait Compare<Other>: View
where Other: View<V = Self::V>,
{ // Required method fn compare(&self, other: &Other) -> bool; }
Expand description

A helper trait for two different types that can be compared.

Required Methods§

Source

fn compare(&self, other: &Other) -> bool

Compare a value of Self with a value of Other.

Implementations on Foreign Types§

Source§

impl<'a, 'b> Compare<&'b [u8]> for &'a [u8]

Source§

fn compare(&self, other: &&'b [u8]) -> bool

Implementors§

Source§

impl<Int> Compare<Int> for Int
where Int: FromToBytes,