ToExtras

Trait ToExtras 

Source
pub trait ToExtras<E: Extras<Self::Input>> {
    type Input;

    // Required method
    fn to_extras(&self) -> E;

    // Provided method
    fn into_extras(self) -> E
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

Source

fn to_extras(&self) -> E

Provided Methods§

Source

fn into_extras(self) -> E
where Self: Sized,

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§

Source§

impl<E: Extras<char>> ToExtras<E> for StrCursor<'_, E>

Source§

impl<T, E: Extras<T>> ToExtras<E> for Cursor<'_, T, E>

Source§

type Input = T