Module gazebo::prelude[][src]

Standard functions. Usually imported with use gazebo::prelude::*.

Contains:

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 Iterator.

OptionExt

Extension traits on Option.

SliceExt

Extension traits on slices/Vec.

StrExt

Extension traits on str.

VecExt

Extension traits on Vec.

Derive Macros

Clone_

Derive the Clone trait, but without requiring all type arguments to implement Clone.

Copy_

Derive the Copy trait, but without requiring all type arguments to implement Copy.

Default_

Derive the Default trait, but without requiring all type arguments to implement Default.

Dupe

Derive the Dupe trait.

Dupe_

Derive the Dupe trait, but without requiring all type arguments to implement Dupe.