[][src]Struct kaiser::buffer::Buffer

pub struct Buffer { /* fields omitted */ }

Methods

impl Buffer[src]

pub fn new(data: Vec<Char>, original: Arc<String>) -> Self[src]

pub fn len(&self) -> usize[src]

pub fn partial(self, offset: usize, stride: NonZeroUsize) -> PartialBuffer[src]

pub fn score(&self, method: ScoreMethod) -> Score[src]

pub fn original(&self) -> &str[src]

Trait Implementations

impl<'_> CharStream<'_> for Buffer[src]

fn collect(&'a self) -> String[src]

impl Clone for Buffer[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'_> From<&'_ str> for Buffer[src]

impl<'_> From<&'_ String> for Buffer[src]

impl From<Buffer> for PartialBuffer[src]

impl From<PartialBuffer> for Buffer[src]

impl<'a> IntoIterator for &'a Buffer[src]

type Item = &'a Char

The type of the elements being iterated over.

type IntoIter = Iter<'a, Char>

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a mut Buffer[src]

type Item = &'a mut Char

The type of the elements being iterated over.

type IntoIter = IterMut<'a, Char>

Which kind of iterator are we turning this into?

impl Display for Buffer[src]

impl Debug for Buffer[src]

Auto Trait Implementations

impl Send for Buffer

impl Sync for Buffer

Blanket Implementations

impl<'a, T> IntoBorrowingIterator for T where
    T: 'a,
    &'b T: IntoIterator,
    &'b mut T: IntoIterator,
    <&'b T as IntoIterator>::Item == &'b Char,
    <&'b mut T as IntoIterator>::Item == &'b mut Char
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.