[][src]Struct yang2::iter::Array

pub struct Array<'a, S: Binding<'a>> { /* fields omitted */ }

An iterator over an array of nodes or substatements.

This is a safe wrapper around libyang2's sized arrays.

Implementations

impl<'a, S> Array<'a, S> where
    S: Binding<'a>, 
[src]

pub fn new(
    context: &'a Context,
    raw: *mut S::CType,
    ptr_size: usize
) -> Array<'a, S>

Notable traits for Array<'a, S>

impl<'a, S> Iterator for Array<'a, S> where
    S: Binding<'a, Container = Context>, 
type Item = S;
[src]

Trait Implementations

impl<'a, S: Debug + Binding<'a>> Debug for Array<'a, S> where
    S::CType: Debug
[src]

impl<'a, S> Iterator for Array<'a, S> where
    S: Binding<'a, Container = Context>, 
[src]

type Item = S

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for Array<'a, S> where
    <S as Binding<'a>>::CType: RefUnwindSafe
[src]

impl<'a, S> !Send for Array<'a, S>[src]

impl<'a, S> !Sync for Array<'a, S>[src]

impl<'a, S> Unpin for Array<'a, S>[src]

impl<'a, S> UnwindSafe for Array<'a, S> where
    <S as Binding<'a>>::CType: RefUnwindSafe
[src]

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, 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.