pub struct RangeInfo {
pub start: Option<String>,
pub end: Option<String>,
pub inclusive: bool,
}Expand description
Information about a parsed range expression.
Fields§
§start: Option<String>Start value of the range (None for unbounded start).
end: Option<String>End value of the range (None for unbounded end).
inclusive: boolWhether the range is inclusive (..=) or exclusive (..).
Implementations§
Source§impl RangeInfo
impl RangeInfo
Sourcepub fn from_range<F>(range: &ExprRange, transpile_expr: F) -> Self
pub fn from_range<F>(range: &ExprRange, transpile_expr: F) -> Self
Sourcepub fn comparison_op(&self) -> &'static str
pub fn comparison_op(&self) -> &'static str
Generate the CUDA comparison operator for the loop condition.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RangeInfo
impl RefUnwindSafe for RangeInfo
impl Send for RangeInfo
impl Sync for RangeInfo
impl Unpin for RangeInfo
impl UnwindSafe for RangeInfo
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)