# Primitive Type bool [−]

The boolean type.

## Trait Implementations

### `impl Not for bool`

#### `type Output = bool`

#### `fn not(self) -> bool`

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

#### `type Output = bool::Output`

#### `fn not(self) -> bool::Output`

### `impl BitAnd<bool> for bool`

#### `type Output = bool`

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

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

#### `type Output = bool::Output`

#### `fn bitand(self, other: bool) -> bool::Output`

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

#### `type Output = bool::Output`

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

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

#### `type Output = bool::Output`

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

### `impl BitOr<bool> for bool`

#### `type Output = bool`

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

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

#### `type Output = bool::Output`

#### `fn bitor(self, other: bool) -> bool::Output`

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

#### `type Output = bool::Output`

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

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

#### `type Output = bool::Output`

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

### `impl BitXor<bool> for bool`

#### `type Output = bool`

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

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

#### `type Output = bool::Output`

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

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

#### `type Output = bool::Output`

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

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

#### `type Output = bool::Output`

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

### `impl BitAndAssign<bool> for bool`

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

### `impl BitOrAssign<bool> for bool`

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

### `impl BitXorAssign<bool> for bool`

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

### `impl PartialEq<bool> for bool`

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

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

### `impl Eq for bool`

### `impl PartialOrd<bool> for bool`

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

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

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

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

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

### `impl Ord for bool`

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

### `impl Clone for bool`

#### `fn clone(&self) -> bool`

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

### `impl Default for bool`

#### `fn default() -> bool`

### `impl FromStr for bool`

#### `type Err = ParseBoolError`

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

### `impl Hash for bool`

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

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

### `impl Debug for bool`

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

### `impl Display for bool`

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

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize`)