Trait vizia::binding::Data

source ·
pub trait Data: 'static + Clone {
    // Required method
    fn same(&self, other: &Self) -> bool;
}
Expand description

A trait for fast comparisons of data. Implemented by any type which can be bound to, i.e. can be cached and compared against previous versions.

Required Methods§

source

fn same(&self, other: &Self) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Data for &'static str

source§

fn same(&self, other: &&'static str) -> bool

source§

impl Data for IpAddr

source§

fn same(&self, other: &IpAddr) -> bool

source§

impl Data for SocketAddr

source§

fn same(&self, other: &SocketAddr) -> bool

source§

impl Data for ErrorKind

source§

fn same(&self, other: &ErrorKind) -> bool

source§

impl Data for bool

source§

fn same(&self, other: &bool) -> bool

source§

impl Data for char

source§

fn same(&self, other: &char) -> bool

source§

impl Data for f32

source§

fn same(&self, other: &f32) -> bool

source§

impl Data for f64

source§

fn same(&self, other: &f64) -> bool

source§

impl Data for i8

source§

fn same(&self, other: &i8) -> bool

source§

impl Data for i16

source§

fn same(&self, other: &i16) -> bool

source§

impl Data for i32

source§

fn same(&self, other: &i32) -> bool

source§

impl Data for i64

source§

fn same(&self, other: &i64) -> bool

source§

impl Data for i128

source§

fn same(&self, other: &i128) -> bool

source§

impl Data for isize

source§

fn same(&self, other: &isize) -> bool

source§

impl Data for u8

source§

fn same(&self, other: &u8) -> bool

source§

impl Data for u16

source§

fn same(&self, other: &u16) -> bool

source§

impl Data for u32

source§

fn same(&self, other: &u32) -> bool

source§

impl Data for u64

source§

fn same(&self, other: &u64) -> bool

source§

impl Data for u128

source§

fn same(&self, other: &u128) -> bool

source§

impl Data for ()

source§

fn same(&self, _other: &()) -> bool

source§

impl Data for usize

source§

fn same(&self, other: &usize) -> bool

source§

impl Data for String

source§

fn same(&self, other: &String) -> bool

source§

impl Data for Ipv4Addr

source§

fn same(&self, other: &Ipv4Addr) -> bool

source§

impl Data for Ipv6Addr

source§

fn same(&self, other: &Ipv6Addr) -> bool

source§

impl Data for SocketAddrV4

source§

fn same(&self, other: &SocketAddrV4) -> bool

source§

impl Data for SocketAddrV6

source§

fn same(&self, other: &SocketAddrV6) -> bool

source§

impl Data for NonZero<i8>

source§

fn same(&self, other: &NonZero<i8>) -> bool

source§

impl Data for NonZero<i16>

source§

fn same(&self, other: &NonZero<i16>) -> bool

source§

impl Data for NonZero<i32>

source§

fn same(&self, other: &NonZero<i32>) -> bool

source§

impl Data for NonZero<i64>

source§

fn same(&self, other: &NonZero<i64>) -> bool

source§

impl Data for NonZero<i128>

source§

fn same(&self, other: &NonZero<i128>) -> bool

source§

impl Data for NonZero<isize>

source§

fn same(&self, other: &NonZero<isize>) -> bool

source§

impl Data for NonZero<u8>

source§

fn same(&self, other: &NonZero<u8>) -> bool

source§

impl Data for NonZero<u16>

source§

fn same(&self, other: &NonZero<u16>) -> bool

source§

impl Data for NonZero<u32>

source§

fn same(&self, other: &NonZero<u32>) -> bool

source§

impl Data for NonZero<u64>

source§

fn same(&self, other: &NonZero<u64>) -> bool

source§

impl Data for NonZero<u128>

source§

fn same(&self, other: &NonZero<u128>) -> bool

source§

impl Data for NonZero<usize>

source§

fn same(&self, other: &NonZero<usize>) -> bool

source§

impl Data for RangeFull

source§

fn same(&self, other: &RangeFull) -> bool

source§

impl Data for Duration

source§

fn same(&self, other: &Duration) -> bool

source§

impl Data for PathBuf

source§

fn same(&self, other: &PathBuf) -> bool

source§

impl Data for Instant

source§

fn same(&self, other: &Instant) -> bool

source§

impl Data for SystemTime

source§

fn same(&self, other: &SystemTime) -> bool

source§

impl Data for NaiveDate

source§

fn same(&self, other: &NaiveDate) -> bool

source§

impl Data for NaiveTime

source§

fn same(&self, other: &NaiveTime) -> bool

source§

impl Data for KeyChord

source§

fn same(&self, other: &KeyChord) -> bool

source§

impl Data for LanguageIdentifier

source§

fn same(&self, other: &LanguageIdentifier) -> bool

source§

impl<T0> Data for (T0,)
where T0: Data,

source§

fn same(&self, other: &(T0,)) -> bool

source§

impl<T0, T1> Data for (T0, T1)
where T0: Data, T1: Data,

source§

fn same(&self, other: &(T0, T1)) -> bool

source§

impl<T0, T1, T2> Data for (T0, T1, T2)
where T0: Data, T1: Data, T2: Data,

source§

fn same(&self, other: &(T0, T1, T2)) -> bool

source§

impl<T0, T1, T2, T3> Data for (T0, T1, T2, T3)
where T0: Data, T1: Data, T2: Data, T3: Data,

source§

fn same(&self, other: &(T0, T1, T2, T3)) -> bool

source§

impl<T0, T1, T2, T3, T4> Data for (T0, T1, T2, T3, T4)
where T0: Data, T1: Data, T2: Data, T3: Data, T4: Data,

source§

fn same(&self, other: &(T0, T1, T2, T3, T4)) -> bool

source§

impl<T0, T1, T2, T3, T4, T5> Data for (T0, T1, T2, T3, T4, T5)
where T0: Data, T1: Data, T2: Data, T3: Data, T4: Data, T5: Data,

source§

impl<T> Data for &'static [T]
where T: Data,

source§

fn same(&self, other: &&'static [T]) -> bool

source§

impl<T> Data for Bound<T>
where T: Data,

source§

fn same(&self, other: &Bound<T>) -> bool

source§

impl<T> Data for Option<T>
where T: Data,

source§

fn same(&self, other: &Option<T>) -> bool

source§

impl<T> Data for Rc<T>
where T: 'static + ?Sized,

source§

fn same(&self, other: &Rc<T>) -> bool

source§

impl<T> Data for Weak<T>
where T: 'static + ?Sized,

source§

fn same(&self, other: &Weak<T>) -> bool

source§

impl<T> Data for Arc<T>
where T: 'static + ?Sized,

source§

fn same(&self, other: &Arc<T>) -> bool

source§

impl<T> Data for Weak<T>
where T: 'static + ?Sized,

source§

fn same(&self, other: &Weak<T>) -> bool

source§

impl<T> Data for Vec<T>
where T: Data,

source§

fn same(&self, other: &Vec<T>) -> bool

source§

impl<T> Data for PhantomData<T>
where T: 'static + ?Sized,

source§

fn same(&self, _other: &PhantomData<T>) -> bool

source§

impl<T> Data for ManuallyDrop<T>
where T: 'static + Data,

source§

fn same(&self, other: &ManuallyDrop<T>) -> bool

source§

impl<T> Data for Discriminant<T>
where T: 'static,

source§

fn same(&self, other: &Discriminant<T>) -> bool

source§

impl<T> Data for Wrapping<T>
where T: Data,

source§

fn same(&self, other: &Wrapping<T>) -> bool

source§

impl<T> Data for Range<T>
where T: Data,

source§

fn same(&self, other: &Range<T>) -> bool

source§

impl<T> Data for RangeFrom<T>
where T: Data,

source§

fn same(&self, other: &RangeFrom<T>) -> bool

source§

impl<T> Data for RangeInclusive<T>
where T: Data,

source§

fn same(&self, other: &RangeInclusive<T>) -> bool

source§

impl<T> Data for RangeTo<T>
where T: Data,

source§

fn same(&self, other: &RangeTo<T>) -> bool

source§

impl<T> Data for RangeToInclusive<T>
where T: Data,

source§

fn same(&self, other: &RangeToInclusive<T>) -> bool

source§

impl<T> Data for HashSet<T>
where T: Hash + Eq + Data,

source§

fn same(&self, other: &HashSet<T>) -> bool

source§

impl<T, U> Data for Result<T, U>
where T: Data, U: Data,

source§

fn same(&self, other: &Result<T, U>) -> bool

source§

impl<T, V> Data for HashMap<T, V>
where T: Hash + Eq + Data, V: Data,

source§

fn same(&self, other: &HashMap<T, V>) -> bool

Implementors§