Trait fluent_syntax::parser::Slice

source ·
pub trait Slice<'s>: AsRef<str> + Clone + PartialEq {
    // Required methods
    fn slice(&self, range: Range<usize>) -> Self;
    fn trim(&mut self);
}

Required Methods§

source

fn slice(&self, range: Range<usize>) -> Self

source

fn trim(&mut self)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'s> Slice<'s> for &'s str

source§

fn slice(&self, range: Range<usize>) -> Self

source§

fn trim(&mut self)

source§

impl<'s> Slice<'s> for String

source§

fn slice(&self, range: Range<usize>) -> Self

source§

fn trim(&mut self)

Implementors§