Struct gdnative_core::export::IndexBounds
source · Expand description
Defines which number of arguments is valid.
Convertible from an exact value a
as well as inclusive range expressions a..
, ..=b
, a..=b
.
Fields§
§start: Option<usize>
The lower (inclusive) bound of the expected number of arguments, or None
if unbounded.
end: Option<usize>
The upper (inclusive) bound of the expected number of arguments, or None
if unbounded.
Implementations§
Trait Implementations§
source§impl Debug for IndexBounds
impl Debug for IndexBounds
source§impl Display for IndexBounds
impl Display for IndexBounds
source§impl From<RangeInclusive<usize>> for IndexBounds
impl From<RangeInclusive<usize>> for IndexBounds
a..=b
source§fn from(range: RangeInclusive<usize>) -> Self
fn from(range: RangeInclusive<usize>) -> Self
Converts to this type from the input type.
source§impl From<RangeToInclusive<usize>> for IndexBounds
impl From<RangeToInclusive<usize>> for IndexBounds
..=b
source§fn from(range: RangeToInclusive<usize>) -> Self
fn from(range: RangeToInclusive<usize>) -> Self
Converts to this type from the input type.