Struct flowstdlib::data::count::Count
source · pub struct Count;Expand description
Count (//flowstdlib/data/count)
Takes a value on it’s input and sends the same value on it’s output and adds one to the count received on ‘count’ input and outputs new count on ‘count’ output
Include using
[[process]]
source = "lib://flowstdlib/data/count"
Definition
function = "count"
source = "count.rs"
docs = "count.md"
type = "rust"
[[input]]
name = "data" # the value to count and pass on
[[input]]
name = "count" # - the count before this data item
[[output]]
name = "data" # - the value passed on
[[output]]
name = "count" # - the incremented count of values passed thru
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Count
impl Send for Count
impl Sync for Count
impl Unpin for Count
impl UnwindSafe for Count
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