[−][src]Struct sixtyfps_corelib::item_tree::VisitChildrenResult
The return value of the Component::visit_children_item function
Represents something like enum { Continue, Aborted{aborted_at_item: isize} }
.
But this is just wrapping a int because it is easier to use ffi with isize than
complex enum.
-1 means the visitor will continue otherwise this is the index of the item that aborted the visit.
Implementations
impl VisitChildrenResult
[src]
pub const CONTINUE: Self
[src]
The result used for a visitor that want to continue the visit
pub fn abort(item_index: usize, index_within_repeater: usize) -> Self
[src]
Returns a result that means that the visitor must stop, and convey the item that caused the abort
pub fn has_aborted(&self) -> bool
[src]
True if the visitor wants to abort the visit
pub fn aborted_index(&self) -> Option<usize>
[src]
pub fn aborted_indexes(&self) -> Option<(usize, usize)>
[src]
Trait Implementations
impl Clone for VisitChildrenResult
[src]
pub fn clone(&self) -> VisitChildrenResult
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VisitChildrenResult
[src]
impl Debug for VisitChildrenResult
[src]
impl Eq for VisitChildrenResult
[src]
impl PartialEq<VisitChildrenResult> for VisitChildrenResult
[src]
pub fn eq(&self, other: &VisitChildrenResult) -> bool
[src]
pub fn ne(&self, other: &VisitChildrenResult) -> bool
[src]
impl StructuralEq for VisitChildrenResult
[src]
impl StructuralPartialEq for VisitChildrenResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for VisitChildrenResult
impl Send for VisitChildrenResult
impl Sync for VisitChildrenResult
impl Unpin for VisitChildrenResult
impl UnwindSafe for VisitChildrenResult
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>,