Module gazebo::prelude [−][src]
Standard functions. Usually imported with use gazebo::prelude::*
.
Contains:
- Extension methods for
str
and slice/Vec
. - Exports the
Dupe
trait. - Defines derive macros such as
Dupe_
.
The derivation macros appended with underscore are like the normal derivations, but don’t require the trait on any argument types. For example, given the type:
#[derive(Clone_)] struct Foo<T>(Arc<T>);
It is possible to use derive(Clone)
, but that would require that
T
implements Clone
, which is unnecessary. Using
Clone_
removes that constraint.
Re-exports
pub use crate::dupe::Dupe; |
Traits
IterDuped | |
IterExt | Extension traits on |
OptionExt | Extension traits on |
SliceExt | Extension traits on slices/ |
StrExt | Extension traits on |
VecExt | Extension traits on |
Derive Macros
Clone_ | Derive the |
Copy_ | Derive the |
Default_ | Derive the |
Dupe | Derive the |
Dupe_ | Derive the |