Module pr47::util::type_assert::helper_traits [−][src]
Expand description
Contains traits used by type assertions.
Warning: These traits are really internal and made public due to Rust restrictions.
Implementing any of these traits will NOT magically make your own Result
or Option
or so
work, but will create bugs that are really hard to troubleshoot. Simply don’t do that.
Traits
Trait used to assert that one type is cloneable.
Trait used to assert that one type is an immutable reference
Trait used to assert that one type is a mutable reference.
Trait used to assert that one type is a null-convertible Option
type.
Trait used to assert that one type is a reference.
Trait used to assert that one type is an exception-convertible Result
type.