#[repr(C)]pub struct rb_arithmetic_sequence_components_t {
pub begin: VALUE,
pub end: VALUE,
pub step: VALUE,
pub exclude_end: c_int,
}Expand description
§Decomposed Enumerator::ArithmeicSequence. This is a subclass of
::rb_cEnumerator, which represents a sequence of numbers with common
difference. Internal data structure of the class is opaque to users, but
you can obtain a decomposed one using rb_arithmetic_sequence_extract.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3
Fields§
§begin: VALUE§< “Left” or “lowest” endpoint of the sequence.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3
end: VALUE§< “Right” or “highest” endpoint of the sequence.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3
step: VALUE§exclude_end: c_intTrait Implementations§
Source§impl Clone for rb_arithmetic_sequence_components_t
impl Clone for rb_arithmetic_sequence_components_t
Source§fn clone(&self) -> rb_arithmetic_sequence_components_t
fn clone(&self) -> rb_arithmetic_sequence_components_t
Returns a duplicate 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 PartialEq for rb_arithmetic_sequence_components_t
impl PartialEq for rb_arithmetic_sequence_components_t
Source§fn eq(&self, other: &rb_arithmetic_sequence_components_t) -> bool
fn eq(&self, other: &rb_arithmetic_sequence_components_t) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for rb_arithmetic_sequence_components_t
impl Eq for rb_arithmetic_sequence_components_t
impl StructuralPartialEq for rb_arithmetic_sequence_components_t
Auto Trait Implementations§
impl Freeze for rb_arithmetic_sequence_components_t
impl RefUnwindSafe for rb_arithmetic_sequence_components_t
impl Send for rb_arithmetic_sequence_components_t
impl Sync for rb_arithmetic_sequence_components_t
impl Unpin for rb_arithmetic_sequence_components_t
impl UnwindSafe for rb_arithmetic_sequence_components_t
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