pub struct CheckDigitAlgorithm {}
Expand description

Validate the SEDOL numbers defined by the London Stock Exchange

Trait Implementations§

Return the name of this algorithm.
Calculate a check digit for the provided string.
Return the number of characters used as the check digit. Currently it is assumed that these are the n right-most characters in the input string.
Create a new string with the original data plus check digit.
Validate that the string is valid and that it contains a valid check digit.
Returns true if the provided string includes a valid check digit, else false. The default implementation relies on the validate method.
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Casts the value.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Casts the value.
Casts the value.
Casts the value.
Casts the value.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Casts the value.
Casts the value.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Casts the value.
Casts the value.