[−][src]Enum mogwai::view::interface::Patch
Variants used to patch the children of a View
.
Variants
Insert a child node at a certain index. Zero-indexed.
Fields of Insert
Replace a child at a certain index. Zero-indexed.
Fields of Replace
Remove the child at a certain index. Zero-indexed.
Fields of Remove
index: usize
The index of the child to remove.
Remove all child nodes.
Push a child node onto the front of the list of child nodes.
Push a child node onto the back of the list of child nodes.
Remove the first child node.
Remove the last child node.
Keep the first N nodes.
Fields of Keep
first: usize
The number/size of the first nodes to keep.
Drop the first N nodes.
Fields of Drop
first: usize
the number/size of the first nodes to drop.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Patch<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Patch<T> where
T: Send,
T: Send,
impl<T> Sync for Patch<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Patch<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Patch<T> where
T: UnwindSafe,
T: UnwindSafe,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
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>,