pub enum DataType {
Float64,
Float32,
Float16,
UInt8,
UInt16,
UInt32,
UInt64,
Int8,
Int16,
Int32,
Int64,
Bool,
}Expand description
An enum representation for common DiskANN data types.
[DispatchRule]s are defined for each type here and it’s corresponding Type.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataType
impl<'de> Deserialize<'de> for DataType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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