Skip to main content

Hint

Trait Hint 

Source
pub trait Hint<T> {
    // Required method
    fn hint(self, hint: impl Into<EcoString>) -> Result<T, HintedString>;
}
Expand description

Enrich a StrResult or HintedStrResult with a hint.

Required Methods§

Source

fn hint(self, hint: impl Into<EcoString>) -> Result<T, HintedString>

Add the hint.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, S> Hint<T> for Result<T, S>
where S: Into<EcoString>,

Source§

fn hint(self, hint: impl Into<EcoString>) -> Result<T, HintedString>

Source§

impl<T> Hint<T> for Result<T, HintedString>

Source§

fn hint(self, hint: impl Into<EcoString>) -> Result<T, HintedString>

Implementors§