Trait Evaluation

Source
pub trait Evaluation {
    // Required methods
    fn backslashes(&self) -> &Range<usize>;
    fn range(&self) -> &Range<usize>;

    // Provided methods
    fn is_escaped(&self) -> bool { ... }
    fn replace<S: Into<String>, F: FnOnce() -> Result<S>>(
        &self,
        target: &mut String,
        producer: F,
    ) -> Result<()> { ... }
}

Required Methods§

Source

fn backslashes(&self) -> &Range<usize>

Source

fn range(&self) -> &Range<usize>

Provided Methods§

Source

fn is_escaped(&self) -> bool

Source

fn replace<S: Into<String>, F: FnOnce() -> Result<S>>( &self, target: &mut String, producer: F, ) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§