Skip to main content

Module de

Module de 

Source

Re-exportsยง

use arrayvec::ArrayVec; ๐Ÿ”’
use core::str::FromStr as _; ๐Ÿ”’
use itertools::Itertools as _; ๐Ÿ”’
use rustc_attr_ir::RustcVersion; ๐Ÿ”’
use rustc_attr_parsing::parse_version; ๐Ÿ”’
use rustc_errors::DiagCtxtHandle; ๐Ÿ”’
use rustc_errors::DiagMessage; ๐Ÿ”’
use rustc_session::Session; ๐Ÿ”’
use rustc_session::config::ErrorOutputType; ๐Ÿ”’
use rustc_span::edit_distance::edit_distance; ๐Ÿ”’
use rustc_span::BytePos; ๐Ÿ”’
use rustc_span::Pos as _; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::Spanned; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use std::collections::HashMap; ๐Ÿ”’
use std::collections::HashSet; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::fmt::Display; ๐Ÿ”’
use std::fmt::Write as _; ๐Ÿ”’
use std::hash::BuildHasher; ๐Ÿ”’
use std::hash::Hash; ๐Ÿ”’
use std::hash::Hash; ๐Ÿ”’
use std::marker::PhantomData; ๐Ÿ”’
use std::ops::ControlFlow; ๐Ÿ”’
use std::ops::Range; ๐Ÿ”’
use toml::de::DeValue; ๐Ÿ”’

Macrosยง

deserialize_table ๐Ÿ”’
impl_deserialize_float ๐Ÿ”’
impl_deserialize_int ๐Ÿ”’
impl_from_default_passthrough ๐Ÿ”’

Structsยง

DiagCtxt
DisplaySlice ๐Ÿ”’
DisplayStr ๐Ÿ”’

Traitsยง

Deserialize
A type which can be deserialized from a toml value.
DeserializeOrDefault
A type which can be deserialized from a toml value with a fallback to a default value.
FromDefault
A type which can be constructed from a default value.

Functionsยง

create_value_list_msg
Creates a message listing all possible values suitable for use in Diag::note.
deserialize_array
find_closest_match
Attempts to find the closest matching string from the list. Returns None if the edit distance is too large.

Type Aliasesยง

TomlValue