[−][src]Struct verify::span::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.
fn add(self, rhs: S) -> Self::Output
[src]
impl AddAssign<Keys> for Keys
[src]
fn add_assign(&mut self, rhs: Self)
[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?
fn into_iter(self) -> Self::IntoIter
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T> Span for T where
T: Clone + AddAssign<T> + Debug,
[src]
T: Clone + AddAssign<T> + Debug,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,