Struct ArityRange
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§
§impl ArityRange
impl ArityRange
pub const DOUBLETS: ArityRange
pub const DOUBLETS: ArityRange
Links of exactly two references.
pub const fn exactly(arity: u64) -> ArityRange
pub const fn exactly(arity: u64) -> ArityRange
Links of exactly arity references.
pub const fn at_least(min: u64) -> ArityRange
pub const fn at_least(min: u64) -> ArityRange
Links of at least min references.
pub const fn between(min: u64, max: u64) -> ArityRange
pub const fn between(min: u64, max: u64) -> ArityRange
Links of min..=max references.
Trait Implementations§
§impl Clone for ArityRange
impl Clone for ArityRange
§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
§impl Debug for ArityRange
impl Debug for ArityRange
§impl Default for ArityRange
impl Default for ArityRange
§fn default() -> ArityRange
fn default() -> ArityRange
Returns the “default value” for a type. Read more
§impl Display for ArityRange
impl Display for ArityRange
impl Eq for ArityRange
§impl FromStr for ArityRange
impl FromStr for ArityRange
§impl Hash for ArityRange
impl Hash for ArityRange
§impl PartialEq for ArityRange
impl PartialEq for ArityRange
impl StructuralPartialEq for ArityRange
Auto Trait Implementations§
impl Freeze 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