Enum taffy::node::MeasureFunc
source · pub enum MeasureFunc {
Raw(fn(_: Size<Option<f32>>, _: Size<AvailableSpace>) -> Size<f32>),
Boxed(Box<dyn Measurable>),
}
Expand description
A function that can be used to compute the intrinsic size of a node
Variants§
Raw(fn(_: Size<Option<f32>>, _: Size<AvailableSpace>) -> Size<f32>)
Stores an unboxed function
Boxed(Box<dyn Measurable>)
Stores a boxed function
Auto Trait Implementations§
impl !RefUnwindSafe for MeasureFunc
impl Send for MeasureFunc
impl Sync for MeasureFunc
impl Unpin for MeasureFunc
impl !UnwindSafe for MeasureFunc
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