Skip to main content

PrimitiveSignedRandomBounds

Trait PrimitiveSignedRandomBounds 

Source
pub trait PrimitiveSignedRandomBounds: HasRandomSignedRange + RandomSignedChunkable { }
Expand description

The bounds that PrimitiveSigned has only when the random feature is enabled.

With the feature on these are [HasRandomSignedRange] and [RandomSignedChunkable]; with it off there are none. Every type meeting the bounds implements it automatically, so it never needs to be implemented by hand.

See PrimitiveIntRandomBounds for why this indirection exists.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: HasRandomSignedRange + RandomSignedChunkable> PrimitiveSignedRandomBounds for T

Available on crate feature random only.