Trait StrictType

Source
pub trait StrictType: Sized {
    const STRICT_LIB_NAME: &'static str;

    // Provided method
    fn strict_name() -> Option<TypeName> { ... }
}

Required Associated Constants§

Source

const STRICT_LIB_NAME: &'static str

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StrictType for bool

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for i8

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for i16

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for i32

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for i64

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for i128

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u8

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u16

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u32

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u64

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u128

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for ()

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for i256

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for i512

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for i1024

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u256

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u512

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u1024

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u1

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u2

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u3

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u4

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u5

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u6

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u7

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u24

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u40

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u48

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for u56

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for NonZeroU8

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for NonZeroU16

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for NonZeroU32

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for NonZeroU64

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for NonZeroU128

Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for Double

Available on crate feature float only.
Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for Half

Available on crate feature float only.
Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for Oct

Available on crate feature float only.
Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for Quad

Available on crate feature float only.
Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for Single

Available on crate feature float only.
Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl StrictType for X87DoubleExtended

Available on crate feature float only.
Source§

const STRICT_LIB_NAME: &'static str = crate::LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<A: StrictType, B: StrictType> StrictType for (A, B)

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<A: StrictType, B: StrictType, C: StrictType> StrictType for (A, B, C)

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<K: StrictType + Ord + Hash, V: StrictType, const MIN_LEN: usize, const MAX_LEN: usize> StrictType for Confined<BTreeMap<K, V>, MIN_LEN, MAX_LEN>

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<T> StrictType for Option<T>
where T: StrictType,

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<T> StrictType for Box<T>
where T: StrictType,

Source§

const STRICT_LIB_NAME: &'static str = T::STRICT_LIB_NAME

Source§

impl<T> StrictType for PhantomData<T>

Source§

const STRICT_LIB_NAME: &'static str = ""

Source§

impl<T: StrictType + Ord, const MIN_LEN: usize, const MAX_LEN: usize> StrictType for Confined<BTreeSet<T>, MIN_LEN, MAX_LEN>

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<T: StrictType + Copy + StrictDumb, const LEN: usize> StrictType for [T; LEN]

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<T: StrictType + StrictDumb + Copy, const LEN: usize, const REVERSE_STR: bool> StrictType for Array<T, LEN, REVERSE_STR>

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<T: StrictType> StrictType for &T

Source§

const STRICT_LIB_NAME: &'static str = T::STRICT_LIB_NAME

Source§

impl<T: StrictType, const MIN_LEN: usize, const MAX_LEN: usize> StrictType for Confined<VecDeque<T>, MIN_LEN, MAX_LEN>

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<T: StrictType, const MIN_LEN: usize, const MAX_LEN: usize> StrictType for Confined<Vec<T>, MIN_LEN, MAX_LEN>

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<const MIN_LEN: usize, const MAX_LEN: usize> StrictType for Confined<String, MIN_LEN, MAX_LEN>

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<const MIN_LEN: usize, const MAX_LEN: usize> StrictType for Confined<AsciiString, MIN_LEN, MAX_LEN>

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

fn strict_name() -> Option<TypeName>

Implementors§

Source§

impl StrictType for Alpha

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaCaps

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaCapsDash

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaCapsDot

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaCapsLodash

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaCapsNum

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaDash

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaDot

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaLodash

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaNum

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaNumDash

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaNumDot

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaNumLodash

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaSmall

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaSmallDash

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaSmallDot

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AlphaSmallLodash

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for Bool

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for Dec

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for DecDot

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for HexDecCaps

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for HexDecSmall

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for U1

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for U2

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for U3

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for U4

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for U5

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for U6

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for U7

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AsciiPrintable

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for AsciiSym

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_STD

Source§

impl StrictType for Byte

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED

Source§

impl StrictType for FieldName

Source§

const STRICT_LIB_NAME: &'static str = STRICT_TYPES_LIB

Source§

impl StrictType for Ident

Source§

const STRICT_LIB_NAME: &'static str = STRICT_TYPES_LIB

Source§

impl StrictType for LibName

Source§

const STRICT_LIB_NAME: &'static str = STRICT_TYPES_LIB

Source§

impl StrictType for Primitive

Source§

const STRICT_LIB_NAME: &'static str = STRICT_TYPES_LIB

Source§

impl StrictType for Sizing

Source§

const STRICT_LIB_NAME: &'static str = STRICT_TYPES_LIB

Source§

impl StrictType for TypeName

Source§

const STRICT_LIB_NAME: &'static str = STRICT_TYPES_LIB

Source§

impl StrictType for Variant

Source§

const STRICT_LIB_NAME: &'static str = STRICT_TYPES_LIB

Source§

impl StrictType for VariantName

Source§

const STRICT_LIB_NAME: &'static str = STRICT_TYPES_LIB

Source§

impl<C1: RestrictedCharSet, C: RestrictedCharSet, const MIN_LEN: usize, const MAX_LEN: usize> StrictType for RString<C1, C, MIN_LEN, MAX_LEN>

Source§

const STRICT_LIB_NAME: &'static str = LIB_EMBEDDED