pub trait IntoArgs {
// Required method
fn into_args(self, args: CommandArgs) -> CommandArgs;
// Provided method
fn num_args(&self) -> usize { ... }
}
Expand description
Types compatible with command args
Required Methods§
fn into_args(self, args: CommandArgs) -> CommandArgs
Provided Methods§
Implementations on Foreign Types§
Source§impl<K, V> IntoArgs for BTreeMap<K, V>
impl<K, V> IntoArgs for BTreeMap<K, V>
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Source§impl<K, V, S: BuildHasher> IntoArgs for HashMap<K, V, S>
impl<K, V, S: BuildHasher> IntoArgs for HashMap<K, V, S>
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Source§impl<T> IntoArgs for Option<T>where
T: IntoArgs,
impl<T> IntoArgs for Option<T>where
T: IntoArgs,
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Source§impl<T> IntoArgs for BTreeSet<T>where
T: IntoArgs,
impl<T> IntoArgs for BTreeSet<T>where
T: IntoArgs,
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Source§impl<T> IntoArgs for Vec<T>where
T: IntoArgs,
impl<T> IntoArgs for Vec<T>where
T: IntoArgs,
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Source§impl<T, A> IntoArgs for SmallVec<A>
impl<T, A> IntoArgs for SmallVec<A>
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Source§impl<T, S: BuildHasher> IntoArgs for HashSet<T, S>where
T: IntoArgs,
impl<T, S: BuildHasher> IntoArgs for HashSet<T, S>where
T: IntoArgs,
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Source§impl<T, U> IntoArgs for (T, U)
impl<T, U> IntoArgs for (T, U)
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Source§impl<T, U, V> IntoArgs for (T, U, V)
impl<T, U, V> IntoArgs for (T, U, V)
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Source§impl<T, const N: usize> IntoArgs for [T; N]where
T: IntoArgs,
impl<T, const N: usize> IntoArgs for [T; N]where
T: IntoArgs,
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Implementors§
impl IntoArgs for BitFieldOverflow
impl IntoArgs for BitOperation
impl IntoArgs for BitUnit
impl IntoArgs for ClientCachingMode
impl IntoArgs for ClientPauseMode
impl IntoArgs for ClientReplyMode
impl IntoArgs for ClientTrackingStatus
impl IntoArgs for ClientType
impl IntoArgs for ClientUnblockMode
impl IntoArgs for ClusterFailoverOption
impl IntoArgs for ClusterResetType
impl IntoArgs for ClusterSetSlotSubCommand
impl IntoArgs for ExpireOption
impl IntoArgs for FlushingMode
impl IntoArgs for FunctionRestorePolicy
impl IntoArgs for GeoAddCondition
impl IntoArgs for GeoSearchBy
impl IntoArgs for GeoSearchOrder
impl IntoArgs for GeoUnit
impl IntoArgs for GetExOptions
impl IntoArgs for LInsertWhere
impl IntoArgs for LMoveWhere
impl IntoArgs for ScriptDebugMode
impl IntoArgs for SentinelSimulateFailureMode
impl IntoArgs for SetCondition
impl IntoArgs for SetExpiration
impl IntoArgs for SortOrder
impl IntoArgs for XTrimOperator
impl IntoArgs for ZAddComparison
impl IntoArgs for ZAddCondition
impl IntoArgs for ZAggregate
impl IntoArgs for ZRangeSortBy
impl IntoArgs for ZWhere
impl IntoArgs for CommandArgs
Allow to merge CommandArgs
in another CommandArgs