Struct Xor

Source
pub struct Xor;
Expand description

Each node contains the bitwise xor of the interval it represents.

Trait Implementations§

Source§

impl Clone for Xor

Source§

fn clone(&self) -> Xor

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Xor

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Xor

Source§

fn default() -> Xor

Returns the “default value” for a type. Read more
Source§

impl Hash for Xor

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Identity<bool> for Xor

Source§

fn identity(&self) -> bool

Returns false.

Source§

impl Identity<i128> for Xor

Source§

fn identity(&self) -> i128

Returns zero.

Source§

impl Identity<i16> for Xor

Source§

fn identity(&self) -> i16

Returns zero.

Source§

impl Identity<i32> for Xor

Source§

fn identity(&self) -> i32

Returns zero.

Source§

impl Identity<i64> for Xor

Source§

fn identity(&self) -> i64

Returns zero.

Source§

impl Identity<i8> for Xor

Source§

fn identity(&self) -> i8

Returns zero.

Source§

impl Identity<isize> for Xor

Source§

fn identity(&self) -> isize

Returns zero.

Source§

impl Identity<u128> for Xor

Source§

fn identity(&self) -> u128

Returns zero.

Source§

impl Identity<u16> for Xor

Source§

fn identity(&self) -> u16

Returns zero.

Source§

impl Identity<u32> for Xor

Source§

fn identity(&self) -> u32

Returns zero.

Source§

impl Identity<u64> for Xor

Source§

fn identity(&self) -> u64

Returns zero.

Source§

impl Identity<u8> for Xor

Source§

fn identity(&self) -> u8

Returns zero.

Source§

impl Identity<usize> for Xor

Source§

fn identity(&self) -> usize

Returns zero.

Source§

impl Invertible<bool> for Xor

Source§

fn uncombine(&self, a: &mut bool, b: &bool)

Returns the boolean xor.

Source§

impl Invertible<i128> for Xor

Source§

fn uncombine(&self, a: &mut i128, b: &i128)

Returns the bitwise exclusive or.

Source§

impl Invertible<i16> for Xor

Source§

fn uncombine(&self, a: &mut i16, b: &i16)

Returns the bitwise exclusive or.

Source§

impl Invertible<i32> for Xor

Source§

fn uncombine(&self, a: &mut i32, b: &i32)

Returns the bitwise exclusive or.

Source§

impl Invertible<i64> for Xor

Source§

fn uncombine(&self, a: &mut i64, b: &i64)

Returns the bitwise exclusive or.

Source§

impl Invertible<i8> for Xor

Source§

fn uncombine(&self, a: &mut i8, b: &i8)

Returns the bitwise exclusive or.

Source§

impl Invertible<isize> for Xor

Source§

fn uncombine(&self, a: &mut isize, b: &isize)

Returns the bitwise exclusive or.

Source§

impl Invertible<u128> for Xor

Source§

fn uncombine(&self, a: &mut u128, b: &u128)

Returns the bitwise exclusive or.

Source§

impl Invertible<u16> for Xor

Source§

fn uncombine(&self, a: &mut u16, b: &u16)

Returns the bitwise exclusive or.

Source§

impl Invertible<u32> for Xor

Source§

fn uncombine(&self, a: &mut u32, b: &u32)

Returns the bitwise exclusive or.

Source§

impl Invertible<u64> for Xor

Source§

fn uncombine(&self, a: &mut u64, b: &u64)

Returns the bitwise exclusive or.

Source§

impl Invertible<u8> for Xor

Source§

fn uncombine(&self, a: &mut u8, b: &u8)

Returns the bitwise exclusive or.

Source§

impl Invertible<usize> for Xor

Source§

fn uncombine(&self, a: &mut usize, b: &usize)

Returns the bitwise exclusive or.

Source§

impl Operation<bool> for Xor

Source§

fn combine(&self, a: &bool, b: &bool) -> bool

Returns the boolean xor.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<i128> for Xor

Source§

fn combine(&self, a: &i128, b: &i128) -> i128

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<i16> for Xor

Source§

fn combine(&self, a: &i16, b: &i16) -> i16

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<i32> for Xor

Source§

fn combine(&self, a: &i32, b: &i32) -> i32

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<i64> for Xor

Source§

fn combine(&self, a: &i64, b: &i64) -> i64

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<i8> for Xor

Source§

fn combine(&self, a: &i8, b: &i8) -> i8

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<isize> for Xor

Source§

fn combine(&self, a: &isize, b: &isize) -> isize

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<u128> for Xor

Source§

fn combine(&self, a: &u128, b: &u128) -> u128

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<u16> for Xor

Source§

fn combine(&self, a: &u16, b: &u16) -> u16

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<u32> for Xor

Source§

fn combine(&self, a: &u32, b: &u32) -> u32

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<u64> for Xor

Source§

fn combine(&self, a: &u64, b: &u64) -> u64

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<u8> for Xor

Source§

fn combine(&self, a: &u8, b: &u8) -> u8

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Operation<usize> for Xor

Source§

fn combine(&self, a: &usize, b: &usize) -> usize

Returns the bitwise exclusive or.

Source§

fn combine_mut(&self, a: &mut N, b: &N)

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_mut2(&self, a: &N, b: &mut N)

Replace the value in b with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine.
Source§

fn combine_left(&self, a: N, b: &N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut.
Source§

fn combine_right(&self, a: &N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2.
Source§

fn combine_both(&self, a: N, b: N) -> N

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left.
Source§

impl Ord for Xor

Source§

fn cmp(&self, other: &Xor) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Xor

Source§

fn eq(&self, other: &Xor) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Xor

Source§

fn partial_cmp(&self, other: &Xor) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Commutative<i128> for Xor

Source§

impl Commutative<i16> for Xor

Source§

impl Commutative<i32> for Xor

Source§

impl Commutative<i64> for Xor

Source§

impl Commutative<i8> for Xor

Source§

impl Commutative<isize> for Xor

Source§

impl Commutative<u128> for Xor

Source§

impl Commutative<u16> for Xor

Source§

impl Commutative<u32> for Xor

Source§

impl Commutative<u64> for Xor

Source§

impl Commutative<u8> for Xor

Source§

impl Commutative<usize> for Xor

Source§

impl Copy for Xor

Source§

impl Eq for Xor

Source§

impl StructuralPartialEq for Xor

Auto Trait Implementations§

§

impl Freeze for Xor

§

impl RefUnwindSafe for Xor

§

impl Send for Xor

§

impl Sync for Xor

§

impl Unpin for Xor

§

impl UnwindSafe for Xor

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.