Struct runestick::Range [−][src]
pub struct Range { pub start: Option<Value>, pub end: Option<Value>, pub limits: RangeLimits, }
Expand description
Struct representing a dynamic anonymous object.
Examples
use runestick::{Range, RangeLimits, ToValue as _}; let from = 42i64.to_value()?; let _ = Range::new(Some(from), None, RangeLimits::HalfOpen);
Fields
start: Option<Value>
The start value of the range.
end: Option<Value>
The to value of the range.
limits: RangeLimits
The limits of the range.
Implementations
Trait Implementations
Try to convert to the given type, from the given value.
Hook to install more things into the module.
Auto Trait Implementations
impl !RefUnwindSafe for Range
impl !UnwindSafe for Range
Blanket Implementations
Mutably borrows from an owned value. Read more