Struct gdnative::export::IndexBounds
pub struct IndexBounds {
pub start: Option<usize>,
pub end: Option<usize>,
}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§
§impl IndexBounds
impl IndexBounds
Trait Implementations§
§impl Debug for IndexBounds
impl Debug for IndexBounds
§impl Display for IndexBounds
impl Display for IndexBounds
§impl From<RangeFrom<usize>> for IndexBounds
impl From<RangeFrom<usize>> for IndexBounds
a..
§fn from(range: RangeFrom<usize>) -> IndexBounds
fn from(range: RangeFrom<usize>) -> IndexBounds
Converts to this type from the input type.
§impl From<RangeInclusive<usize>> for IndexBounds
impl From<RangeInclusive<usize>> for IndexBounds
a..=b
§fn from(range: RangeInclusive<usize>) -> IndexBounds
fn from(range: RangeInclusive<usize>) -> IndexBounds
Converts to this type from the input type.
§impl From<RangeToInclusive<usize>> for IndexBounds
impl From<RangeToInclusive<usize>> for IndexBounds
..=b
§fn from(range: RangeToInclusive<usize>) -> IndexBounds
fn from(range: RangeToInclusive<usize>) -> IndexBounds
Converts to this type from the input type.
§impl From<usize> for IndexBounds
impl From<usize> for IndexBounds
a
§fn from(exact_value: usize) -> IndexBounds
fn from(exact_value: usize) -> IndexBounds
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IndexBounds
impl RefUnwindSafe for IndexBounds
impl Send for IndexBounds
impl Sync for IndexBounds
impl Unpin for IndexBounds
impl UnwindSafe for IndexBounds
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