pub struct ArityRange {
pub min: u64,
pub max: Option<u64>,
}Expand description
How many references the links of a section hold: min..=max, where
max = None means no upper bound.
Fields§
§min: u64Fewest references in a link, at least 1.
max: Option<u64>Most references in a link, None for no limit.
Implementations§
Source§impl ArityRange
impl ArityRange
Sourcepub const DOUBLETS: ArityRange
pub const DOUBLETS: ArityRange
Links of exactly two references.
Sourcepub const fn exactly(arity: u64) -> ArityRange
pub const fn exactly(arity: u64) -> ArityRange
Links of exactly arity references.
Sourcepub const fn at_least(min: u64) -> ArityRange
pub const fn at_least(min: u64) -> ArityRange
Links of at least min references.
Sourcepub const fn between(min: u64, max: u64) -> ArityRange
pub const fn between(min: u64, max: u64) -> ArityRange
Links of min..=max references.
Trait Implementations§
Source§impl Clone for ArityRange
impl Clone for ArityRange
Source§fn clone(&self) -> ArityRange
fn clone(&self) -> ArityRange
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 ArityRange
Source§impl Debug for ArityRange
impl Debug for ArityRange
Source§impl Default for ArityRange
impl Default for ArityRange
Source§fn default() -> ArityRange
fn default() -> ArityRange
Returns the “default value” for a type. Read more
Source§impl Display for ArityRange
impl Display for ArityRange
impl Eq for ArityRange
Source§impl FromStr for ArityRange
impl FromStr for ArityRange
Source§impl Hash for ArityRange
impl Hash for ArityRange
Source§impl PartialEq for ArityRange
impl PartialEq for ArityRange
impl StructuralPartialEq for ArityRange
Auto Trait Implementations§
impl Forget for ArityRange
impl Freeze for ArityRange
impl Move for ArityRange
impl RefUnwindSafe for ArityRange
impl Send for ArityRange
impl Sync for ArityRange
impl Unpin for ArityRange
impl UnsafeUnpin for ArityRange
impl UnwindSafe for ArityRange
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