Struct flowstdlib::math::range_split::RangeSplit
source · pub struct RangeSplit;Expand description
Range (//flowstdlib/math/range_split)
Split a range of numbers into two sub-ranges, or output the number if they are the same
Include using
[[process]]
source = "lib://flowstdlib/math/range"
Definition
function = "range_split"
source = "range_split.rs"
docs = "range_split.md"
type = "rust"
# The range_split definition: an array of [smallest number in the range_split, The largest number in the range_split]
[[input]]
name = "range"
type = "array/number"
# This will be a new range (array of two numbers) in the bottom half of the input range_split
[[output]]
name = "bottom"
type = "array/number"
# This will be a new range (array of two numbers) in the top half of the input range_split
[[output]]
name = "top"
type = "array/number"
# Numbers in the range will be output here
[[output]]
name = "same"
type = "number"
Trait Implementations§
source§impl Debug for RangeSplit
impl Debug for RangeSplit
Auto Trait Implementations§
impl RefUnwindSafe for RangeSplit
impl Send for RangeSplit
impl Sync for RangeSplit
impl Unpin for RangeSplit
impl UnwindSafe for RangeSplit
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