#[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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)