[][src]Enum neli::attr::AttrHandleMut

pub enum AttrHandleMut<'a, O, I> {
    Owned(O),
    Borrowed(&'a mut [I]),
}

Handle for traversing nested attribute structures mutably

Variants

Owned(O)

Owned vector

Borrowed(&'a mut [I])

Vector reference

Implementations

impl<'a, O, I> AttrHandleMut<'a, O, I> where
    O: AsRef<[I]> + AsMut<[I]>, 
[src]

pub fn new(owned: O) -> Self[src]

Create new AttrHandle

pub fn new_borrowed(borrowed: &'a mut [I]) -> Self[src]

Create new borrowed AttrHandleMut

pub fn iter_mut(&mut self) -> IterMut<'_, I>

Notable traits for IterMut<'a, T>

impl<'a, T> Iterator for IterMut<'a, T> type Item = &'a mut T;
[src]

Pass back iterator over attributes

pub fn get_mut_attrs(&mut self) -> &mut [I][src]

Get the underlying owned value as a mutable reference or return None.

Auto Trait Implementations

impl<'a, O, I> RefUnwindSafe for AttrHandleMut<'a, O, I> where
    I: RefUnwindSafe,
    O: RefUnwindSafe
[src]

impl<'a, O, I> Send for AttrHandleMut<'a, O, I> where
    I: Send,
    O: Send
[src]

impl<'a, O, I> Sync for AttrHandleMut<'a, O, I> where
    I: Sync,
    O: Sync
[src]

impl<'a, O, I> Unpin for AttrHandleMut<'a, O, I> where
    O: Unpin
[src]

impl<'a, O, I> !UnwindSafe for AttrHandleMut<'a, O, I>[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<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.