# Primitive Type bool1.0.0[−]

The boolean type.

The `bool`

represents a value, which could only be either `true`

or `false`

. If you cast
a `bool`

into an integer, `true`

will be 1 and `false`

will be 0.

# Basic usage

`bool`

implements various traits, such as `BitAnd`

, `BitOr`

, `Not`

, etc.,
which allow us to perform boolean operations using `&`

, `|`

and `!`

.

`if`

always demands a `bool`

value. `assert!`

, being an important macro in testing,
checks whether an expression returns `true`

.

let bool_val = true & false | false; assert!(!bool_val);Run

# Examples

A trivial example of the usage of `bool`

,

let praise_the_borrow_checker = true; // using the `if` conditional if praise_the_borrow_checker { println!("oh, yeah!"); } else { println!("what?!!"); } // ... or, a match pattern match praise_the_borrow_checker { true => println!("keep praising!"), false => println!("you should praise!"), }Run

Also, since `bool`

implements the `Copy`

trait, we don't
have to worry about the move semantics (just like the integer and float primitives).

Now an example of `bool`

cast to integer type:

assert_eq!(true as i32, 1); assert_eq!(false as i32, 0);Run

## Trait Implementations

`impl Eq for bool`

[src]

`impl Eq for bool`

`impl PartialEq<bool> for bool`

[src]

`impl PartialEq<bool> for bool`

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

[src]

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

This method tests for `self`

and `other`

values to be equal, and is used by `==`

. Read more

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

[src]

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

This method tests for `!=`

.

`impl<'a> BitXorAssign<&'a bool> for bool`

1.22.0[src]

`impl<'a> BitXorAssign<&'a bool> for bool`

`fn bitxor_assign(&mut self, other: &'a bool)`

[src]

`fn bitxor_assign(&mut self, other: &'a bool)`

Performs the `^=`

operation.

`impl BitXorAssign<bool> for bool`

1.8.0[src]

`impl BitXorAssign<bool> for bool`

`fn bitxor_assign(&mut self, other: bool)`

[src]

`fn bitxor_assign(&mut self, other: bool)`

Performs the `^=`

operation.

`impl BitOrAssign<bool> for bool`

1.8.0[src]

`impl BitOrAssign<bool> for bool`

`fn bitor_assign(&mut self, other: bool)`

[src]

`fn bitor_assign(&mut self, other: bool)`

Performs the `|=`

operation.

`impl<'a> BitOrAssign<&'a bool> for bool`

1.22.0[src]

`impl<'a> BitOrAssign<&'a bool> for bool`

`fn bitor_assign(&mut self, other: &'a bool)`

[src]

`fn bitor_assign(&mut self, other: &'a bool)`

Performs the `|=`

operation.

`impl<'a> BitAndAssign<&'a bool> for bool`

1.22.0[src]

`impl<'a> BitAndAssign<&'a bool> for bool`

`fn bitand_assign(&mut self, other: &'a bool)`

[src]

`fn bitand_assign(&mut self, other: &'a bool)`

Performs the `&=`

operation.

`impl BitAndAssign<bool> for bool`

1.8.0[src]

`impl BitAndAssign<bool> for bool`

`fn bitand_assign(&mut self, other: bool)`

[src]

`fn bitand_assign(&mut self, other: bool)`

Performs the `&=`

operation.

`impl FromStr for bool`

[src]

`impl FromStr for bool`

`type Err = ParseBoolError`

The associated error which can be returned from parsing.

`fn from_str(s: &str) -> Result<bool, ParseBoolError>`

[src]

`fn from_str(s: &str) -> Result<bool, ParseBoolError>`

Parse a `bool`

from a string.

Yields a `Result<bool, ParseBoolError>`

, because `s`

may or may not
actually be parseable.

# Examples

use std::str::FromStr; assert_eq!(FromStr::from_str("true"), Ok(true)); assert_eq!(FromStr::from_str("false"), Ok(false)); assert!(<bool as FromStr>::from_str("not even a boolean").is_err());Run

Note, in many cases, the `.parse()`

method on `str`

is more proper.

assert_eq!("true".parse(), Ok(true)); assert_eq!("false".parse(), Ok(false)); assert!("not even a boolean".parse::<bool>().is_err());Run

`impl BitOr<m16x2> for bool`

[src]

`impl BitOr<m16x2> for bool`

`type Output = m16x2`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m16x2) -> m16x2`

[src]

`fn bitor(self, other: m16x2) -> m16x2`

Performs the `|`

operation.

`impl BitOr<m16x4> for bool`

[src]

`impl BitOr<m16x4> for bool`

`type Output = m16x4`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m16x4) -> m16x4`

[src]

`fn bitor(self, other: m16x4) -> m16x4`

Performs the `|`

operation.

`impl<'a> BitOr<&'a bool> for bool`

[src]

`impl<'a> BitOr<&'a bool> for bool`

`type Output = <bool as BitOr<bool>>::Output`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: &'a bool) -> <bool as BitOr<bool>>::Output`

[src]

`fn bitor(self, other: &'a bool) -> <bool as BitOr<bool>>::Output`

Performs the `|`

operation.

`impl BitOr<m64x2> for bool`

[src]

`impl BitOr<m64x2> for bool`

`type Output = m64x2`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m64x2) -> m64x2`

[src]

`fn bitor(self, other: m64x2) -> m64x2`

Performs the `|`

operation.

`impl BitOr<m8x4> for bool`

[src]

`impl BitOr<m8x4> for bool`

`type Output = m8x4`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m8x4) -> m8x4`

[src]

`fn bitor(self, other: m8x4) -> m8x4`

Performs the `|`

operation.

`impl BitOr<m8x32> for bool`

[src]

`impl BitOr<m8x32> for bool`

`type Output = m8x32`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m8x32) -> m8x32`

[src]

`fn bitor(self, other: m8x32) -> m8x32`

Performs the `|`

operation.

`impl BitOr<m32x8> for bool`

[src]

`impl BitOr<m32x8> for bool`

`type Output = m32x8`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m32x8) -> m32x8`

[src]

`fn bitor(self, other: m32x8) -> m32x8`

Performs the `|`

operation.

`impl BitOr<m1x64> for bool`

[src]

`impl BitOr<m1x64> for bool`

`type Output = m1x64`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m1x64) -> m1x64`

[src]

`fn bitor(self, other: m1x64) -> m1x64`

Performs the `|`

operation.

`impl BitOr<m8x2> for bool`

[src]

`impl BitOr<m8x2> for bool`

`type Output = m8x2`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m8x2) -> m8x2`

[src]

`fn bitor(self, other: m8x2) -> m8x2`

Performs the `|`

operation.

`impl BitOr<m64x4> for bool`

[src]

`impl BitOr<m64x4> for bool`

`type Output = m64x4`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m64x4) -> m64x4`

[src]

`fn bitor(self, other: m64x4) -> m64x4`

Performs the `|`

operation.

`impl BitOr<m8x8> for bool`

[src]

`impl BitOr<m8x8> for bool`

`type Output = m8x8`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m8x8) -> m8x8`

[src]

`fn bitor(self, other: m8x8) -> m8x8`

Performs the `|`

operation.

`impl BitOr<m32x2> for bool`

[src]

`impl BitOr<m32x2> for bool`

`type Output = m32x2`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m32x2) -> m32x2`

[src]

`fn bitor(self, other: m32x2) -> m32x2`

Performs the `|`

operation.

`impl BitOr<m16x16> for bool`

[src]

`impl BitOr<m16x16> for bool`

`type Output = m16x16`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m16x16) -> m16x16`

[src]

`fn bitor(self, other: m16x16) -> m16x16`

Performs the `|`

operation.

`impl BitOr<m1x8> for bool`

[src]

`impl BitOr<m1x8> for bool`

`type Output = m1x8`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m1x8) -> m1x8`

[src]

`fn bitor(self, other: m1x8) -> m1x8`

Performs the `|`

operation.

`impl BitOr<bool> for bool`

[src]

`impl BitOr<bool> for bool`

`type Output = bool`

The resulting type after applying the `|`

operator.

`fn bitor(self, rhs: bool) -> bool`

[src]

`fn bitor(self, rhs: bool) -> bool`

Performs the `|`

operation.

`impl BitOr<m8x16> for bool`

[src]

`impl BitOr<m8x16> for bool`

`type Output = m8x16`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m8x16) -> m8x16`

[src]

`fn bitor(self, other: m8x16) -> m8x16`

Performs the `|`

operation.

`impl BitOr<m32x4> for bool`

[src]

`impl BitOr<m32x4> for bool`

`type Output = m32x4`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m32x4) -> m32x4`

[src]

`fn bitor(self, other: m32x4) -> m32x4`

Performs the `|`

operation.

`impl<'a, 'b> BitOr<&'a bool> for &'b bool`

[src]

`impl<'a, 'b> BitOr<&'a bool> for &'b bool`

`type Output = <bool as BitOr<bool>>::Output`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: &'a bool) -> <bool as BitOr<bool>>::Output`

[src]

`fn bitor(self, other: &'a bool) -> <bool as BitOr<bool>>::Output`

Performs the `|`

operation.

`impl BitOr<m16x8> for bool`

[src]

`impl BitOr<m16x8> for bool`

`type Output = m16x8`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m16x8) -> m16x8`

[src]

`fn bitor(self, other: m16x8) -> m16x8`

Performs the `|`

operation.

`impl<'a> BitOr<bool> for &'a bool`

[src]

`impl<'a> BitOr<bool> for &'a bool`

`type Output = <bool as BitOr<bool>>::Output`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: bool) -> <bool as BitOr<bool>>::Output`

[src]

`fn bitor(self, other: bool) -> <bool as BitOr<bool>>::Output`

Performs the `|`

operation.

`impl BitOr<m1x16> for bool`

[src]

`impl BitOr<m1x16> for bool`

`type Output = m1x16`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m1x16) -> m1x16`

[src]

`fn bitor(self, other: m1x16) -> m1x16`

Performs the `|`

operation.

`impl BitOr<m1x32> for bool`

[src]

`impl BitOr<m1x32> for bool`

`type Output = m1x32`

The resulting type after applying the `|`

operator.

`fn bitor(self, other: m1x32) -> m1x32`

[src]

`fn bitor(self, other: m1x32) -> m1x32`

Performs the `|`

operation.

`impl Hash for bool`

[src]

`impl Hash for bool`

`fn hash<H>(&self, state: &mut H) where`

H: Hasher,

[src]

`fn hash<H>(&self, state: &mut H) where`

H: Hasher,

Feeds this value into the given [`Hasher`

]. Read more

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

H: Hasher,

1.3.0[src]

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

H: Hasher,

Feeds a slice of this type into the given [`Hasher`

]. Read more

`impl Default for bool`

[src]

`impl Default for bool`

`impl Display for bool`

[src]

`impl Display for bool`

`fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`

[src]

`fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`

Formats the value using the given formatter. Read more

`impl BitXor<m1x64> for bool`

[src]

`impl BitXor<m1x64> for bool`

`type Output = m1x64`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m1x64) -> m1x64`

[src]

`fn bitxor(self, other: m1x64) -> m1x64`

Performs the `^`

operation.

`impl BitXor<m1x8> for bool`

[src]

`impl BitXor<m1x8> for bool`

`type Output = m1x8`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m1x8) -> m1x8`

[src]

`fn bitxor(self, other: m1x8) -> m1x8`

Performs the `^`

operation.

`impl BitXor<m8x2> for bool`

[src]

`impl BitXor<m8x2> for bool`

`type Output = m8x2`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m8x2) -> m8x2`

[src]

`fn bitxor(self, other: m8x2) -> m8x2`

Performs the `^`

operation.

`impl BitXor<m64x2> for bool`

[src]

`impl BitXor<m64x2> for bool`

`type Output = m64x2`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m64x2) -> m64x2`

[src]

`fn bitxor(self, other: m64x2) -> m64x2`

Performs the `^`

operation.

`impl BitXor<m16x16> for bool`

[src]

`impl BitXor<m16x16> for bool`

`type Output = m16x16`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m16x16) -> m16x16`

[src]

`fn bitxor(self, other: m16x16) -> m16x16`

Performs the `^`

operation.

`impl BitXor<m1x16> for bool`

[src]

`impl BitXor<m1x16> for bool`

`type Output = m1x16`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m1x16) -> m1x16`

[src]

`fn bitxor(self, other: m1x16) -> m1x16`

Performs the `^`

operation.

`impl BitXor<m32x2> for bool`

[src]

`impl BitXor<m32x2> for bool`

`type Output = m32x2`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m32x2) -> m32x2`

[src]

`fn bitxor(self, other: m32x2) -> m32x2`

Performs the `^`

operation.

`impl BitXor<m16x4> for bool`

[src]

`impl BitXor<m16x4> for bool`

`type Output = m16x4`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m16x4) -> m16x4`

[src]

`fn bitxor(self, other: m16x4) -> m16x4`

Performs the `^`

operation.

`impl<'a> BitXor<bool> for &'a bool`

[src]

`impl<'a> BitXor<bool> for &'a bool`

`type Output = <bool as BitXor<bool>>::Output`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: bool) -> <bool as BitXor<bool>>::Output`

[src]

`fn bitxor(self, other: bool) -> <bool as BitXor<bool>>::Output`

Performs the `^`

operation.

`impl BitXor<m8x32> for bool`

[src]

`impl BitXor<m8x32> for bool`

`type Output = m8x32`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m8x32) -> m8x32`

[src]

`fn bitxor(self, other: m8x32) -> m8x32`

Performs the `^`

operation.

`impl<'a, 'b> BitXor<&'a bool> for &'b bool`

[src]

`impl<'a, 'b> BitXor<&'a bool> for &'b bool`

`type Output = <bool as BitXor<bool>>::Output`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: &'a bool) -> <bool as BitXor<bool>>::Output`

[src]

`fn bitxor(self, other: &'a bool) -> <bool as BitXor<bool>>::Output`

Performs the `^`

operation.

`impl BitXor<m8x16> for bool`

[src]

`impl BitXor<m8x16> for bool`

`type Output = m8x16`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m8x16) -> m8x16`

[src]

`fn bitxor(self, other: m8x16) -> m8x16`

Performs the `^`

operation.

`impl BitXor<m32x8> for bool`

[src]

`impl BitXor<m32x8> for bool`

`type Output = m32x8`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m32x8) -> m32x8`

[src]

`fn bitxor(self, other: m32x8) -> m32x8`

Performs the `^`

operation.

`impl<'a> BitXor<&'a bool> for bool`

[src]

`impl<'a> BitXor<&'a bool> for bool`

`type Output = <bool as BitXor<bool>>::Output`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: &'a bool) -> <bool as BitXor<bool>>::Output`

[src]

`fn bitxor(self, other: &'a bool) -> <bool as BitXor<bool>>::Output`

Performs the `^`

operation.

`impl BitXor<m16x8> for bool`

[src]

`impl BitXor<m16x8> for bool`

`type Output = m16x8`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m16x8) -> m16x8`

[src]

`fn bitxor(self, other: m16x8) -> m16x8`

Performs the `^`

operation.

`impl BitXor<bool> for bool`

[src]

`impl BitXor<bool> for bool`

`type Output = bool`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: bool) -> bool`

[src]

`fn bitxor(self, other: bool) -> bool`

Performs the `^`

operation.

`impl BitXor<m32x4> for bool`

[src]

`impl BitXor<m32x4> for bool`

`type Output = m32x4`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m32x4) -> m32x4`

[src]

`fn bitxor(self, other: m32x4) -> m32x4`

Performs the `^`

operation.

`impl BitXor<m8x4> for bool`

[src]

`impl BitXor<m8x4> for bool`

`type Output = m8x4`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m8x4) -> m8x4`

[src]

`fn bitxor(self, other: m8x4) -> m8x4`

Performs the `^`

operation.

`impl BitXor<m64x4> for bool`

[src]

`impl BitXor<m64x4> for bool`

`type Output = m64x4`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m64x4) -> m64x4`

[src]

`fn bitxor(self, other: m64x4) -> m64x4`

Performs the `^`

operation.

`impl BitXor<m1x32> for bool`

[src]

`impl BitXor<m1x32> for bool`

`type Output = m1x32`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m1x32) -> m1x32`

[src]

`fn bitxor(self, other: m1x32) -> m1x32`

Performs the `^`

operation.

`impl BitXor<m8x8> for bool`

[src]

`impl BitXor<m8x8> for bool`

`type Output = m8x8`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m8x8) -> m8x8`

[src]

`fn bitxor(self, other: m8x8) -> m8x8`

Performs the `^`

operation.

`impl BitXor<m16x2> for bool`

[src]

`impl BitXor<m16x2> for bool`

`type Output = m16x2`

The resulting type after applying the `^`

operator.

`fn bitxor(self, other: m16x2) -> m16x2`

[src]

`fn bitxor(self, other: m16x2) -> m16x2`

Performs the `^`

operation.

`impl Not for bool`

[src]

`impl Not for bool`

`type Output = bool`

The resulting type after applying the `!`

operator.

`fn not(self) -> bool`

[src]

`fn not(self) -> bool`

Performs the unary `!`

operation.

`impl<'a> Not for &'a bool`

[src]

`impl<'a> Not for &'a bool`

`type Output = <bool as Not>::Output`

The resulting type after applying the `!`

operator.

`fn not(self) -> <bool as Not>::Output`

[src]

`fn not(self) -> <bool as Not>::Output`

Performs the unary `!`

operation.

`impl Copy for bool`

[src]

`impl Copy for bool`

`impl Debug for bool`

[src]

`impl Debug for bool`

`fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`

[src]

`fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`

Formats the value using the given formatter. Read more

`impl Clone for bool`

[src]

`impl Clone for bool`

`fn clone(&self) -> bool`

[src]

`fn clone(&self) -> bool`

Returns a copy of the value. Read more

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

[src]

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

Performs copy-assignment from `source`

. Read more

`impl PartialOrd<bool> for bool`

[src]

`impl PartialOrd<bool> for bool`

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

[src]

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

This method returns an ordering between `self`

and `other`

values if one exists. Read more

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

[src]

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

This method tests less than (for `self`

and `other`

) and is used by the `<`

operator. Read more

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

[src]

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

This method tests less than or equal to (for `self`

and `other`

) and is used by the `<=`

operator. Read more

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

[src]

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

This method tests greater than (for `self`

and `other`

) and is used by the `>`

operator. Read more

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

[src]

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

This method tests greater than or equal to (for `self`

and `other`

) and is used by the `>=`

operator. Read more

`impl BitAnd<m1x32> for bool`

[src]

`impl BitAnd<m1x32> for bool`

`type Output = m1x32`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m1x32) -> m1x32`

[src]

`fn bitand(self, other: m1x32) -> m1x32`

Performs the `&`

operation.

`impl BitAnd<m1x8> for bool`

[src]

`impl BitAnd<m1x8> for bool`

`type Output = m1x8`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m1x8) -> m1x8`

[src]

`fn bitand(self, other: m1x8) -> m1x8`

Performs the `&`

operation.

`impl BitAnd<m8x2> for bool`

[src]

`impl BitAnd<m8x2> for bool`

`type Output = m8x2`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m8x2) -> m8x2`

[src]

`fn bitand(self, other: m8x2) -> m8x2`

Performs the `&`

operation.

`impl BitAnd<m1x16> for bool`

[src]

`impl BitAnd<m1x16> for bool`

`type Output = m1x16`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m1x16) -> m1x16`

[src]

`fn bitand(self, other: m1x16) -> m1x16`

Performs the `&`

operation.

`impl BitAnd<m64x4> for bool`

[src]

`impl BitAnd<m64x4> for bool`

`type Output = m64x4`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m64x4) -> m64x4`

[src]

`fn bitand(self, other: m64x4) -> m64x4`

Performs the `&`

operation.

`impl BitAnd<m64x2> for bool`

[src]

`impl BitAnd<m64x2> for bool`

`type Output = m64x2`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m64x2) -> m64x2`

[src]

`fn bitand(self, other: m64x2) -> m64x2`

Performs the `&`

operation.

`impl BitAnd<m32x8> for bool`

[src]

`impl BitAnd<m32x8> for bool`

`type Output = m32x8`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m32x8) -> m32x8`

[src]

`fn bitand(self, other: m32x8) -> m32x8`

Performs the `&`

operation.

`impl BitAnd<m16x16> for bool`

[src]

`impl BitAnd<m16x16> for bool`

`type Output = m16x16`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m16x16) -> m16x16`

[src]

`fn bitand(self, other: m16x16) -> m16x16`

Performs the `&`

operation.

`impl BitAnd<m16x8> for bool`

[src]

`impl BitAnd<m16x8> for bool`

`type Output = m16x8`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m16x8) -> m16x8`

[src]

`fn bitand(self, other: m16x8) -> m16x8`

Performs the `&`

operation.

`impl BitAnd<m8x16> for bool`

[src]

`impl BitAnd<m8x16> for bool`

`type Output = m8x16`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m8x16) -> m8x16`

[src]

`fn bitand(self, other: m8x16) -> m8x16`

Performs the `&`

operation.

`impl<'a> BitAnd<bool> for &'a bool`

[src]

`impl<'a> BitAnd<bool> for &'a bool`

`type Output = <bool as BitAnd<bool>>::Output`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: bool) -> <bool as BitAnd<bool>>::Output`

[src]

`fn bitand(self, other: bool) -> <bool as BitAnd<bool>>::Output`

Performs the `&`

operation.

`impl<'a, 'b> BitAnd<&'a bool> for &'b bool`

[src]

`impl<'a, 'b> BitAnd<&'a bool> for &'b bool`

`type Output = <bool as BitAnd<bool>>::Output`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: &'a bool) -> <bool as BitAnd<bool>>::Output`

[src]

`fn bitand(self, other: &'a bool) -> <bool as BitAnd<bool>>::Output`

Performs the `&`

operation.

`impl BitAnd<m1x64> for bool`

[src]

`impl BitAnd<m1x64> for bool`

`type Output = m1x64`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m1x64) -> m1x64`

[src]

`fn bitand(self, other: m1x64) -> m1x64`

Performs the `&`

operation.

`impl BitAnd<m32x2> for bool`

[src]

`impl BitAnd<m32x2> for bool`

`type Output = m32x2`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m32x2) -> m32x2`

[src]

`fn bitand(self, other: m32x2) -> m32x2`

Performs the `&`

operation.

`impl BitAnd<m16x2> for bool`

[src]

`impl BitAnd<m16x2> for bool`

`type Output = m16x2`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m16x2) -> m16x2`

[src]

`fn bitand(self, other: m16x2) -> m16x2`

Performs the `&`

operation.

`impl BitAnd<m32x4> for bool`

[src]

`impl BitAnd<m32x4> for bool`

`type Output = m32x4`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m32x4) -> m32x4`

[src]

`fn bitand(self, other: m32x4) -> m32x4`

Performs the `&`

operation.

`impl BitAnd<bool> for bool`

[src]

`impl BitAnd<bool> for bool`

`type Output = bool`

The resulting type after applying the `&`

operator.

`fn bitand(self, rhs: bool) -> bool`

[src]

`fn bitand(self, rhs: bool) -> bool`

Performs the `&`

operation.

`impl BitAnd<m16x4> for bool`

[src]

`impl BitAnd<m16x4> for bool`

`type Output = m16x4`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m16x4) -> m16x4`

[src]

`fn bitand(self, other: m16x4) -> m16x4`

Performs the `&`

operation.

`impl<'a> BitAnd<&'a bool> for bool`

[src]

`impl<'a> BitAnd<&'a bool> for bool`

`type Output = <bool as BitAnd<bool>>::Output`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: &'a bool) -> <bool as BitAnd<bool>>::Output`

[src]

`fn bitand(self, other: &'a bool) -> <bool as BitAnd<bool>>::Output`

Performs the `&`

operation.

`impl BitAnd<m8x8> for bool`

[src]

`impl BitAnd<m8x8> for bool`

`type Output = m8x8`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m8x8) -> m8x8`

[src]

`fn bitand(self, other: m8x8) -> m8x8`

Performs the `&`

operation.

`impl BitAnd<m8x32> for bool`

[src]

`impl BitAnd<m8x32> for bool`

`type Output = m8x32`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m8x32) -> m8x32`

[src]

`fn bitand(self, other: m8x32) -> m8x32`

Performs the `&`

operation.

`impl BitAnd<m8x4> for bool`

[src]

`impl BitAnd<m8x4> for bool`

`type Output = m8x4`

The resulting type after applying the `&`

operator.

`fn bitand(self, other: m8x4) -> m8x4`

[src]

`fn bitand(self, other: m8x4) -> m8x4`

Performs the `&`

operation.

`impl Ord for bool`

[src]

`impl Ord for bool`

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

[src]

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

This method returns an `Ordering`

between `self`

and `other`

. Read more

`fn max(self, other: Self) -> Self`

1.21.0[src]

`fn max(self, other: Self) -> Self`

Compares and returns the maximum of two values. Read more

`fn min(self, other: Self) -> Self`

1.21.0[src]

`fn min(self, other: Self) -> Self`

Compares and returns the minimum of two values. Read more