pub struct MacStackViewOutput<R> {
pub inner: R,
pub rect: Rect,
pub item_count: usize,
pub section_count: usize,
}Expand description
Output returned by MacStackView::show.
Fields§
§inner: RReturn value of the inner closure.
rect: RectBounding rectangle enclosing the stacked items and padding.
item_count: usizeTotal count of items added to the stack.
section_count: usizeTotal count of sections added to the stack.
Trait Implementations§
Source§impl<R: Clone> Clone for MacStackViewOutput<R>
impl<R: Clone> Clone for MacStackViewOutput<R>
Auto Trait Implementations§
impl<R> Forget for MacStackViewOutput<R>
impl<R> Freeze for MacStackViewOutput<R>where
R: Freeze,
impl<R> RefUnwindSafe for MacStackViewOutput<R>where
R: RefUnwindSafe,
impl<R> Send for MacStackViewOutput<R>where
R: Send,
impl<R> Sync for MacStackViewOutput<R>where
R: Sync,
impl<R> Unpin for MacStackViewOutput<R>where
R: Unpin,
impl<R> UnsafeUnpin for MacStackViewOutput<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for MacStackViewOutput<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more