Enum debris_backends::common::MinecraftRange
source · pub enum MinecraftRange {
Range {
from: i32,
to: i32,
},
Minimum(i32),
Maximum(i32),
Equal(i32),
NotEqual(i32),
}
Expand description
Any valid minecraft range
A minecraft range is inclusive on both ends
Variants§
Range
A full range, eg. 1..99
Minimum(i32)
A range with a lower bound, eg. 0..
Maximum(i32)
A range with an upper bound, eg. ..50
Equal(i32)
A range that only contains one value
NotEqual(i32)
A range that contains every value except one
Implementations§
source§impl MinecraftRange
impl MinecraftRange
pub fn from_operator(value: i32, operator: ScoreboardComparison) -> Self
Trait Implementations§
source§impl Clone for MinecraftRange
impl Clone for MinecraftRange
source§fn clone(&self) -> MinecraftRange
fn clone(&self) -> MinecraftRange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MinecraftRange
impl Debug for MinecraftRange
source§impl Display for MinecraftRange
impl Display for MinecraftRange
impl Copy for MinecraftRange
Auto Trait Implementations§
impl RefUnwindSafe for MinecraftRange
impl Send for MinecraftRange
impl Sync for MinecraftRange
impl Unpin for MinecraftRange
impl UnwindSafe for MinecraftRange
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