twilight_model/util/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
//! Utilities for efficiently parsing and representing data from Discord's API.

pub mod datetime;
pub mod hex_color;
pub mod image_hash;
pub(crate) mod mustbe;

pub use self::{datetime::Timestamp, hex_color::HexColor, image_hash::ImageHash};

#[allow(clippy::trivially_copy_pass_by_ref)]
pub(crate) fn is_false(value: &bool) -> bool {
    !value
}