pub struct UnWeight<T> { /* private fields */ }
Expand description
the Weightless
struct is a marker type that represents the absence of a weight.
Implementations§
Source§impl<T> UnWeight<T>
impl<T> UnWeight<T>
Sourcepub fn as_weight(self) -> Weightless<T>
pub fn as_weight(self) -> Weightless<T>
converts a reference to the current instance into a Weightless
type.
Sourcepub fn into_weight(self) -> Weightless<T>
pub fn into_weight(self) -> Weightless<T>
consumes the current instance to convert it into a Weightless
type.