[][src]Struct verify::span::Keys

#[repr(transparent)]pub struct Keys(_);

A span consisting of consecutive string keys.

Implementations

impl Keys[src]

pub fn new() -> Self[src]

Create a new instance with no keys.

pub fn with_capacity(cap: usize) -> Self[src]

Create a new empty instance with a capacity.

pub fn iter(&self) -> impl Iterator<Item = &String>[src]

Iterator over the keys.

pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut String>[src]

Mutable Iterator over the keys.

pub fn dotted(&self) -> String[src]

Returns the keys joined by dots.

pub fn push(&mut self, value: String)[src]

Add a new key.

pub fn into_inner(self) -> SmallVec<[String; 10]>[src]

Return the inner container.

Trait Implementations

impl<S: ToString> Add<S> for Keys[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<Keys> for Keys[src]

impl Clone for Keys[src]

impl Debug for Keys[src]

impl Default for Keys[src]

impl Eq for Keys[src]

impl From<String> for Keys[src]

impl IntoIterator for Keys[src]

type Item = <SmallVec<[String; 10]> as IntoIterator>::Item

The type of the elements being iterated over.

type IntoIter = IntoIter<[String; 10]>

Which kind of iterator are we turning this into?

impl PartialEq<Keys> for Keys[src]

impl StructuralEq for Keys[src]

impl StructuralPartialEq for Keys[src]

Auto Trait Implementations

impl RefUnwindSafe for Keys

impl Send for Keys

impl Sync for Keys

impl Unpin for Keys

impl UnwindSafe for Keys

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Span for T where
    T: Clone + AddAssign<T> + Debug
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.