pub struct LayerLengthError {
pub id_family: IdFamily,
pub required: usize,
pub actual: usize,
}Expand description
A property layer shorter than the topology requires.
Carries the family, the required minimum row count, and the offending
layer’s length; layout crates map this into their typed
PropertyLayerTooShort build-error variant.
§Performance
Copying this value is O(1).
Fields§
§id_family: IdFamilyFamily whose layer fell short.
required: usizeMinimum row count the topology requires.
actual: usizeThe offending layer’s actual length.
Trait Implementations§
Source§impl Clone for LayerLengthError
impl Clone for LayerLengthError
Source§fn clone(&self) -> LayerLengthError
fn clone(&self) -> LayerLengthError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LayerLengthError
Source§impl Debug for LayerLengthError
impl Debug for LayerLengthError
Source§impl Display for LayerLengthError
impl Display for LayerLengthError
impl Eq for LayerLengthError
Source§impl Error for LayerLengthError
impl Error for LayerLengthError
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()
Source§impl PartialEq for LayerLengthError
impl PartialEq for LayerLengthError
Source§fn eq(&self, other: &LayerLengthError) -> bool
fn eq(&self, other: &LayerLengthError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LayerLengthError
Auto Trait Implementations§
impl Freeze for LayerLengthError
impl RefUnwindSafe for LayerLengthError
impl Send for LayerLengthError
impl Sync for LayerLengthError
impl Unpin for LayerLengthError
impl UnsafeUnpin for LayerLengthError
impl UnwindSafe for LayerLengthError
Blanket Implementations§
impl<T> Allocation for T
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