[−][src]Struct kaiser::buffer::Buffer
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]
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?
fn into_iter(self) -> Self::IntoIter
[src]
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl Clone for Buffer
[src]
fn clone(&self) -> 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]
fn from(buf: Buffer) -> PartialBuffer
[src]
impl From<PartialBuffer> for Buffer
[src]
fn from(pbuf: PartialBuffer) -> Buffer
[src]
impl Debug for Buffer
[src]
impl Display for Buffer
[src]
Auto Trait Implementations
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]
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,
type IntoIter = <&'a T as IntoIterator>::IntoIter
type IntoIterMut = <&'a mut T as IntoIterator>::IntoIter
fn iter(&'a Self) -> <T as IntoBorrowingIterator<'a>>::IntoIter
[src]
fn iter_mut(&'a mut Self) -> <T as IntoBorrowingIterator<'a>>::IntoIterMut
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,