[][src]Struct sixtyfps_corelib::item_tree::VisitChildrenResult

#[repr(transparent)]pub struct 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]

impl Copy for VisitChildrenResult[src]

impl Debug for VisitChildrenResult[src]

impl Eq for VisitChildrenResult[src]

impl PartialEq<VisitChildrenResult> for VisitChildrenResult[src]

impl StructuralEq for VisitChildrenResult[src]

impl StructuralPartialEq for VisitChildrenResult[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.