Docs.rs
countable-0.1.0
countable 0.1.0
Docs.rs crate page
MIT OR Apache-2.0
Links
Crates.io
Source
Owners
strake
Dependencies
either ^1.5
normal
itertools ^0.7.11
normal
void ^1
normal
Versions
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Countable
Required Associated Types
Counter
Required Methods
count
Implementations on Foreign Types
()
(A, B)
Either<A, B>
Option<A>
Void
Implementors
In countable
?
Trait
countable
::
Countable
source
·
[
−
]
pub trait Countable:
Sized
{ type
Counter
:
Iterator
<Item = Self>; fn
count
() -> Self::
Counter
; }
Required Associated Types
source
type
Counter
:
Iterator
<Item = Self>
Required Methods
source
fn
count
() -> Self::
Counter
Implementations on Foreign Types
source
impl
Countable
for
Void
type
Counter
=
Empty
<
Void
>
source
fn
count
() ->
Empty
<
Void
>
source
impl
Countable
for
()
type
Counter
=
Once
<
()
>
source
fn
count
() ->
Once
<
()
>
source
impl<A:
Countable
>
Countable
for
Option
<A>
type
Counter
=
Chain
<
Once
<
Option
<A>>,
Map
<<A as
Countable
>::
Counter
,
fn
(_: A) ->
Option
<A>>>
source
fn
count
() -> Self::
Counter
source
impl<A:
Countable
, B:
Countable
>
Countable
for
Either
<A, B>
type
Counter
=
Interleave
<
Map
<<A as
Countable
>::
Counter
,
fn
(_: A) ->
Either
<A, B>>,
Map
<<B as
Countable
>::
Counter
,
fn
(_: B) ->
Either
<A, B>>>
source
fn
count
() -> Self::
Counter
source
impl<A:
Clone
+
Countable
, B:
Countable
>
Countable
for
(A, B)
where
B::
Counter
:
Clone
,
type
Counter
=
Product
<<A as
Countable
>::
Counter
, <B as
Countable
>::
Counter
>
source
fn
count
() ->
Product
<A::
Counter
, B::
Counter
>
Implementors