[−][src]Enum neli::attr::AttrHandleMut
Handle for traversing nested attribute structures mutably
Variants
Owned vector
Borrowed(&'a mut [I])
Vector reference
Implementations
impl<'a, O, I> AttrHandleMut<'a, O, I> where
O: AsRef<[I]> + AsMut<[I]>,
[src]
O: AsRef<[I]> + AsMut<[I]>,
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>ⓘ
[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]
I: RefUnwindSafe,
O: RefUnwindSafe,
impl<'a, O, I> Send for AttrHandleMut<'a, O, I> where
I: Send,
O: Send,
[src]
I: Send,
O: Send,
impl<'a, O, I> Sync for AttrHandleMut<'a, O, I> where
I: Sync,
O: Sync,
[src]
I: Sync,
O: Sync,
impl<'a, O, I> Unpin for AttrHandleMut<'a, O, I> where
O: Unpin,
[src]
O: Unpin,
impl<'a, O, I> !UnwindSafe for AttrHandleMut<'a, O, I>
[src]
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,
pub 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<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.
pub 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>,