pub trait IntoCaveat: Sized {
// Required method
fn into_caveat<K: Kind>(self, warnings: Set<K>) -> Caveat<Self, K>;
}Expand description
Converts a value T into a Caveat.
Each module can use this to whitelist their types for conversion to Caveat<T>.
Required 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 IntoCaveat for Cow<'_, str>
Allow Cow<'a, str> to be converted into a Caveat.
impl IntoCaveat for Cow<'_, str>
Allow Cow<'a, str> to be converted into a Caveat.
Source§impl IntoCaveat for Tz
impl IntoCaveat for Tz
Source§impl IntoCaveat for bool
impl IntoCaveat for bool
Source§impl IntoCaveat for char
impl IntoCaveat for char
Source§impl IntoCaveat for i8
impl IntoCaveat for i8
Source§impl IntoCaveat for i16
impl IntoCaveat for i16
Source§impl IntoCaveat for i32
impl IntoCaveat for i32
Source§impl IntoCaveat for i64
impl IntoCaveat for i64
Source§impl IntoCaveat for i128
impl IntoCaveat for i128
Source§impl IntoCaveat for u8
impl IntoCaveat for u8
Source§impl IntoCaveat for u16
impl IntoCaveat for u16
Source§impl IntoCaveat for u32
impl IntoCaveat for u32
Source§impl IntoCaveat for u64
impl IntoCaveat for u64
Source§impl IntoCaveat for u128
impl IntoCaveat for u128
Source§impl IntoCaveat for ()
impl IntoCaveat for ()
Source§impl IntoCaveat for DateTime<Utc>
impl IntoCaveat for DateTime<Utc>
Source§impl IntoCaveat for NaiveDate
impl IntoCaveat for NaiveDate
Source§impl IntoCaveat for NaiveTime
impl IntoCaveat for NaiveTime
Source§impl IntoCaveat for TimeDelta
impl IntoCaveat for TimeDelta
Source§impl IntoCaveat for Decimal
impl IntoCaveat for Decimal
Source§impl<T> IntoCaveat for Option<T>where
T: IntoCaveat,
Allow Option<T: IntoCaveat> to be converted into a Caveat.
impl<T> IntoCaveat for Option<T>where
T: IntoCaveat,
Allow Option<T: IntoCaveat> to be converted into a Caveat.