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
sourceimpl Debug for IndexBounds
impl Debug for IndexBounds
sourceimpl Display for IndexBounds
impl Display for IndexBounds
sourceimpl From<RangeFrom<usize>> for IndexBounds
impl From<RangeFrom<usize>> for IndexBounds
a..
sourceimpl From<RangeInclusive<usize>> for IndexBounds
impl From<RangeInclusive<usize>> for IndexBounds
a..=b
sourcefn from(range: RangeInclusive<usize>) -> Self
fn from(range: RangeInclusive<usize>) -> Self
Converts to this type from the input type.
sourceimpl From<RangeToInclusive<usize>> for IndexBounds
impl From<RangeToInclusive<usize>> for IndexBounds
..=b
sourcefn from(range: RangeToInclusive<usize>) -> Self
fn from(range: RangeToInclusive<usize>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for IndexBounds
impl Send for IndexBounds
impl Sync for IndexBounds
impl Unpin for IndexBounds
impl UnwindSafe for IndexBounds
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more