pub struct Type<T>(/* private fields */);Expand description
Lifting the enum DataType into the Rust type domain.
Trait Implementations§
Source§impl DispatchRule<&DataType> for Type<bool>
impl DispatchRule<&DataType> for Type<bool>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<&DataType> for Type<f16>
impl DispatchRule<&DataType> for Type<f16>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<&DataType> for Type<f32>
impl DispatchRule<&DataType> for Type<f32>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<&DataType> for Type<f64>
impl DispatchRule<&DataType> for Type<f64>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<&DataType> for Type<i16>
impl DispatchRule<&DataType> for Type<i16>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<&DataType> for Type<i32>
impl DispatchRule<&DataType> for Type<i32>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<&DataType> for Type<i64>
impl DispatchRule<&DataType> for Type<i64>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<&DataType> for Type<i8>
impl DispatchRule<&DataType> for Type<i8>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<&DataType> for Type<u16>
impl DispatchRule<&DataType> for Type<u16>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<&DataType> for Type<u32>
impl DispatchRule<&DataType> for Type<u32>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<&DataType> for Type<u64>
impl DispatchRule<&DataType> for Type<u64>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<&DataType> for Type<u8>
impl DispatchRule<&DataType> for Type<u8>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &&DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: &DataType) -> Result<Self, Self::Error>
fn convert(from: &DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<bool>
impl DispatchRule<DataType> for Type<bool>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<f16>
impl DispatchRule<DataType> for Type<f16>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<f32>
impl DispatchRule<DataType> for Type<f32>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<f64>
impl DispatchRule<DataType> for Type<f64>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<i16>
impl DispatchRule<DataType> for Type<i16>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<i32>
impl DispatchRule<DataType> for Type<i32>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<i64>
impl DispatchRule<DataType> for Type<i64>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<i8>
impl DispatchRule<DataType> for Type<i8>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<u16>
impl DispatchRule<DataType> for Type<u16>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<u32>
impl DispatchRule<DataType> for Type<u32>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<u64>
impl DispatchRule<DataType> for Type<u64>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreSource§impl DispatchRule<DataType> for Type<u8>
impl DispatchRule<DataType> for Type<u8>
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
fn try_match(from: &DataType) -> Result<MatchScore, FailureScore>
Source§fn convert(from: DataType) -> Result<Self, Self::Error>
fn convert(from: DataType) -> Result<Self, Self::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
fn description(f: &mut Formatter<'_>, v: Option<&DataType>) -> Result
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read moreimpl<T: Copy> Copy for Type<T>
Auto Trait Implementations§
impl<T> Freeze for Type<T>
impl<T> RefUnwindSafe for Type<T>where
T: RefUnwindSafe,
impl<T> Send for Type<T>where
T: Send,
impl<T> Sync for Type<T>where
T: Sync,
impl<T> Unpin for Type<T>where
T: Unpin,
impl<T> UnsafeUnpin for Type<T>
impl<T> UnwindSafe for Type<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DispatchRule<T> for T
impl<T> DispatchRule<T> for T
Source§type Error = Infallible
type Error = Infallible
Errors that can occur during
convert.Source§fn try_match(_from: &T) -> Result<MatchScore, FailureScore>
fn try_match(_from: &T) -> Result<MatchScore, FailureScore>
Source§fn convert(from: T) -> Result<T, <T as DispatchRule<T>>::Error>
fn convert(from: T) -> Result<T, <T as DispatchRule<T>>::Error>
Perform the actual conversion. Read more
Source§fn description(f: &mut Formatter<'_>, from: Option<&T>) -> Result<(), Error>
fn description(f: &mut Formatter<'_>, from: Option<&T>) -> Result<(), Error>
Write a description of the dispatch rule and outcome to the formatter. Read more
Source§fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
fn try_match_verbose<'a>(
from: &'a From,
) -> Result<MatchScore, TaggedFailureScore<'a>>where
Self: 'a,
The equivalent of
try_match but returns a reason for a failed score. Read more