vizia::binding

Trait 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

A method which determines whether two pieces of data are the same.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§