pub enum FlowError {
Capacity,
InvalidLayout,
InvalidItem {
index: usize,
},
Unrepresentable,
}Expand description
Errors leave the entire output unchanged. Ordinary insufficient space or a
short output buffer is instead reported by FlowReport::overflow.
Variants§
Capacity
More than FLOW_ITEM_CAPACITY items; checked before inspecting items.
InvalidLayout
Invalid parent, row height or gaps.
InvalidItem
Non-finite/negative item fields or unordered extents. All input items are validated, including the suffix that will not fit. First bad index wins.
Unrepresentable
Finite inputs cannot produce representable, disjoint f32 rectangles under the rounding policy without violating a minimum or losing a positive edge.
Trait Implementations§
Source§impl Error for FlowError
impl Error for FlowError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy for FlowError
impl Eq for FlowError
impl StructuralPartialEq for FlowError
Auto Trait Implementations§
impl Freeze for FlowError
impl RefUnwindSafe for FlowError
impl Send for FlowError
impl Sync for FlowError
impl Unpin for FlowError
impl UnwindSafe for FlowError
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