Struct runestick::Range [−][src]
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
impl Range
[src]
pub fn new(
start: Option<Value>,
end: Option<Value>,
limits: RangeLimits
) -> Self
[src]
start: Option<Value>,
end: Option<Value>,
limits: RangeLimits
) -> Self
Construct a new range.
pub fn into_iterator(self) -> Result<Iterator, Panic>
[src]
Coerce range into an iterator.
Trait Implementations
impl Clone for Range
[src]
impl Debug for Range
[src]
impl From<Range> for Value
[src]
impl FromValue for Range
[src]
fn from_value(value: Value) -> Result<Self, VmError>
[src]
impl InstallWith for Range
[src]
fn install_with(module: &mut Module) -> Result<(), ContextError>
[src]
impl Named for Range
[src]
impl ToValue for Range
[src]
impl TypeOf for Range
[src]
impl UnsafeFromValue for &Range
[src]
type Output = *const Range
The output type from the unsafe coercion.
type Guard = RawRef
The raw guard returned. Read more
fn from_value(value: Value) -> Result<(Self::Output, Self::Guard), VmError>
[src]
unsafe fn unsafe_coerce(output: Self::Output) -> Self
[src]
impl UnsafeFromValue for &mut Range
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Range
impl !Send for Range
impl !Sync for Range
impl Unpin for Range
impl !UnwindSafe for Range
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,