pub struct EventTypeFlags(/* private fields */);
Expand description
Important optimization for narrowing requested event types.
Specifying event types is an important optimization technique on top of
Intents
, which can dramatically decrease processor usage in many
circumstances. While specifying intents are required by Discord and
allow filtering groups of Event
s, event type flags are a
Twilight-specific technique to filter out individual events from being
deserialized at all, effectively discarding them.
For example, Intents::GUILDS
includes a wide range of events from
GuildCreate
to RoleUpdate
to ChannelPinsUpdate
. If the only
events used in this group of events is, say, ChannelCreate
and
RoleCreate
, then the CHANNEL_CREATE
and
ROLE_CREATE
event type flags can be specified in
combination with that intent to only deserialize those events.
Selected event types only affect the events returned by Shard
s.
Events necessary for maintaining the connection to Discord, such as
GATEWAY_HEARTBEAT
and
GATEWAY_HELLO
, can safely be excluded and
won’t cause the operation of shards to fail, because shards will always
parse portions of necessary events.
Implementations§
Source§impl EventTypeFlags
impl EventTypeFlags
Sourcepub const AUTO_MODERATION_ACTION_EXECUTION: Self
pub const AUTO_MODERATION_ACTION_EXECUTION: Self
Message has been blocked by AutoMod according to a rule.
Sourcepub const AUTO_MODERATION_RULE_CREATE: Self
pub const AUTO_MODERATION_RULE_CREATE: Self
AutoModerationRule
has been created.
Sourcepub const AUTO_MODERATION_RULE_DELETE: Self
pub const AUTO_MODERATION_RULE_DELETE: Self
AutoModerationRule
has been deleted.
Sourcepub const AUTO_MODERATION_RULE_UPDATE: Self
pub const AUTO_MODERATION_RULE_UPDATE: Self
AutoModerationRule
has been updated.
Sourcepub const ENTITLEMENT_CREATE: Self
pub const ENTITLEMENT_CREATE: Self
An entitlement has been created.
Sourcepub const ENTITLEMENT_DELETE: Self
pub const ENTITLEMENT_DELETE: Self
An entitlement has been deleted.
Sourcepub const ENTITLEMENT_UPDATE: Self
pub const ENTITLEMENT_UPDATE: Self
An entitlement has been updated.
Sourcepub const BAN_REMOVE: Self
pub const BAN_REMOVE: Self
User has been unbanned from a guild.
Sourcepub const CHANNEL_CREATE: Self
pub const CHANNEL_CREATE: Self
Channel has been created.
Sourcepub const CHANNEL_DELETE: Self
pub const CHANNEL_DELETE: Self
Channel has been deleted.
Sourcepub const CHANNEL_PINS_UPDATE: Self
pub const CHANNEL_PINS_UPDATE: Self
Channel’s pins have been updated.
Sourcepub const CHANNEL_UPDATE: Self
pub const CHANNEL_UPDATE: Self
Channel has been updated.
Sourcepub const COMMAND_PERMISSIONS_UPDATE: Self
pub const COMMAND_PERMISSIONS_UPDATE: Self
A command’s permissions has been updated.
Sourcepub const GATEWAY_HEARTBEAT: Self
pub const GATEWAY_HEARTBEAT: Self
Heartbeat has been created.
Sourcepub const GATEWAY_HEARTBEAT_ACK: Self
pub const GATEWAY_HEARTBEAT_ACK: Self
Heartbeat has been acknowledged.
Sourcepub const GATEWAY_HELLO: Self
pub const GATEWAY_HELLO: Self
A “hello” packet has been received from the gateway.
Sourcepub const GATEWAY_INVALIDATE_SESSION: Self
pub const GATEWAY_INVALIDATE_SESSION: Self
Shard’s session has been invalidated.
A payload containing a boolean is included. If true
the session is
resumable. If not, then the shard must initialize a new session.
Sourcepub const GATEWAY_RECONNECT: Self
pub const GATEWAY_RECONNECT: Self
Gateway is indicating that a shard should perform a reconnect.
Sourcepub const GUILD_AUDIT_LOG_ENTRY_CREATE: Self
pub const GUILD_AUDIT_LOG_ENTRY_CREATE: Self
An audit log entry has been created.
Sourcepub const GUILD_CREATE: Self
pub const GUILD_CREATE: Self
A guild has been created.
Sourcepub const GUILD_DELETE: Self
pub const GUILD_DELETE: Self
A guild has been deleted or the current user has been removed from a guild.
Sourcepub const GUILD_EMOJIS_UPDATE: Self
pub const GUILD_EMOJIS_UPDATE: Self
A guild’s emojis have been updated.
Sourcepub const GUILD_INTEGRATIONS_UPDATE: Self
pub const GUILD_INTEGRATIONS_UPDATE: Self
A guild’s integrations have been updated.
Sourcepub const GUILD_SCHEDULED_EVENT_CREATE: Self
pub const GUILD_SCHEDULED_EVENT_CREATE: Self
A guild’s integrations have been updated.
Sourcepub const GUILD_SCHEDULED_EVENT_DELETE: Self
pub const GUILD_SCHEDULED_EVENT_DELETE: Self
A guild’s integrations have been updated.
Sourcepub const GUILD_SCHEDULED_EVENT_UPDATE: Self
pub const GUILD_SCHEDULED_EVENT_UPDATE: Self
A guild’s integrations have been updated.
Sourcepub const GUILD_SCHEDULED_EVENT_USER_ADD: Self
pub const GUILD_SCHEDULED_EVENT_USER_ADD: Self
A guild’s integrations have been updated.
Sourcepub const GUILD_SCHEDULED_EVENT_USER_REMOVE: Self
pub const GUILD_SCHEDULED_EVENT_USER_REMOVE: Self
A guild’s integrations have been updated.
Sourcepub const GUILD_STICKERS_UPDATE: Self
pub const GUILD_STICKERS_UPDATE: Self
A guild’s stickers have been updated.
Sourcepub const GUILD_UPDATE: Self
pub const GUILD_UPDATE: Self
A guild has been updated.
Sourcepub const INTEGRATION_CREATE: Self
pub const INTEGRATION_CREATE: Self
A guild integration was created.
Sourcepub const INTEGRATION_DELETE: Self
pub const INTEGRATION_DELETE: Self
A guild integration was deleted.
Sourcepub const INTEGRATION_UPDATE: Self
pub const INTEGRATION_UPDATE: Self
A guild integration was updated.
Sourcepub const INTERACTION_CREATE: Self
pub const INTERACTION_CREATE: Self
An interaction was invoked by a user.
Sourcepub const INVITE_CREATE: Self
pub const INVITE_CREATE: Self
Invite for a channel has been created.
Sourcepub const INVITE_DELETE: Self
pub const INVITE_DELETE: Self
Invite for a channel has been deleted.
Sourcepub const MEMBER_ADD: Self
pub const MEMBER_ADD: Self
Member has been added to a guild.
Sourcepub const MEMBER_REMOVE: Self
pub const MEMBER_REMOVE: Self
Member has been removed from a guild.
Sourcepub const MEMBER_UPDATE: Self
pub const MEMBER_UPDATE: Self
Member in a guild has been updated.
Sourcepub const MEMBER_CHUNK: Self
pub const MEMBER_CHUNK: Self
Group of members from a guild.
This may be all of the remaining members or not; the chunk index in the event payload needs to be confirmed.
Sourcepub const MESSAGE_CREATE: Self
pub const MESSAGE_CREATE: Self
Message created in a channel.
Sourcepub const MESSAGE_DELETE: Self
pub const MESSAGE_DELETE: Self
Message deleted in a channel.
Sourcepub const MESSAGE_DELETE_BULK: Self
pub const MESSAGE_DELETE_BULK: Self
Multiple messages have been deleted in a channel.
Sourcepub const MESSAGE_POLL_VOTE_ADD: Self
pub const MESSAGE_POLL_VOTE_ADD: Self
Message poll vote has been added.
Sourcepub const MESSAGE_POLL_VOTE_REMOVE: Self
pub const MESSAGE_POLL_VOTE_REMOVE: Self
Message poll vote has been removed.
Sourcepub const MESSAGE_UPDATE: Self
pub const MESSAGE_UPDATE: Self
Message in a channel has been updated.
Sourcepub const PRESENCE_UPDATE: Self
pub const PRESENCE_UPDATE: Self
User’s presence details are updated.
Sourcepub const REACTION_ADD: Self
pub const REACTION_ADD: Self
Reaction has been added to a message.
Sourcepub const REACTION_REMOVE: Self
pub const REACTION_REMOVE: Self
Reaction has been removed from a message.
Sourcepub const REACTION_REMOVE_ALL: Self
pub const REACTION_REMOVE_ALL: Self
All of the reactions for a message have been removed.
Sourcepub const REACTION_REMOVE_EMOJI: Self
pub const REACTION_REMOVE_EMOJI: Self
All of a given emoji’s reactions for a message have been removed.
Sourcepub const ROLE_CREATE: Self
pub const ROLE_CREATE: Self
Role has been created in a guild.
Sourcepub const ROLE_DELETE: Self
pub const ROLE_DELETE: Self
Role has been deleted in a guild.
Sourcepub const ROLE_UPDATE: Self
pub const ROLE_UPDATE: Self
Role has been updated in a guild.
Sourcepub const STAGE_INSTANCE_CREATE: Self
pub const STAGE_INSTANCE_CREATE: Self
Stage instance was created in a stage channel.
Sourcepub const STAGE_INSTANCE_DELETE: Self
pub const STAGE_INSTANCE_DELETE: Self
Stage instance was deleted in a stage channel.
Sourcepub const STAGE_INSTANCE_UPDATE: Self
pub const STAGE_INSTANCE_UPDATE: Self
Stage instance was updated in a stage channel.
Sourcepub const THREAD_CREATE: Self
pub const THREAD_CREATE: Self
A thread has been created, relevant to the current user, or the current user has been added to a thread.
Sourcepub const THREAD_DELETE: Self
pub const THREAD_DELETE: Self
A thread, relevant to the current user, has been deleted.
Sourcepub const THREAD_LIST_SYNC: Self
pub const THREAD_LIST_SYNC: Self
The current user has gained access to a thread.
Sourcepub const THREAD_MEMBERS_UPDATE: Self
pub const THREAD_MEMBERS_UPDATE: Self
A user has been added to or removed from a thread.
Sourcepub const THREAD_MEMBER_UPDATE: Self
pub const THREAD_MEMBER_UPDATE: Self
The thread member object for the current user has been updated.
Sourcepub const THREAD_UPDATE: Self
pub const THREAD_UPDATE: Self
A thread has been updated.
Sourcepub const TYPING_START: Self
pub const TYPING_START: Self
User has begun typing in a channel.
Sourcepub const UNAVAILABLE_GUILD: Self
pub const UNAVAILABLE_GUILD: Self
Guild is unavailable, potentially due to an outage.
Sourcepub const USER_UPDATE: Self
pub const USER_UPDATE: Self
Current user’s profile has been updated.
Sourcepub const VOICE_SERVER_UPDATE: Self
pub const VOICE_SERVER_UPDATE: Self
Voice server has provided an update with voice session details.
Sourcepub const VOICE_STATE_UPDATE: Self
pub const VOICE_STATE_UPDATE: Self
User’s state in a voice channel has been updated.
Sourcepub const WEBHOOKS_UPDATE: Self
pub const WEBHOOKS_UPDATE: Self
Webhook in a guild has been updated.
Sourcepub const AUTO_MODERATION_CONFIGURATION: Self
pub const AUTO_MODERATION_CONFIGURATION: Self
Sourcepub const AUTO_MODERATION_EXECUTION: Self
pub const AUTO_MODERATION_EXECUTION: Self
Sourcepub const DIRECT_MESSAGES: Self
pub const DIRECT_MESSAGES: Self
Sourcepub const DIRECT_MESSAGE_REACTIONS: Self
pub const DIRECT_MESSAGE_REACTIONS: Self
Sourcepub const DIRECT_MESSAGE_TYPING: Self
pub const DIRECT_MESSAGE_TYPING: Self
Sourcepub const GUILDS: Self
pub const GUILDS: Self
All EventTypeFlags
in Intents::GUILDS
.
Sourcepub const GUILD_MODERATION: Self
pub const GUILD_MODERATION: Self
Sourcepub const GUILD_EMOJIS_AND_STICKERS: Self
pub const GUILD_EMOJIS_AND_STICKERS: Self
Sourcepub const GUILD_INTEGRATIONS: Self
pub const GUILD_INTEGRATIONS: Self
Sourcepub const GUILD_INVITES: Self
pub const GUILD_INVITES: Self
All EventTypeFlags
in Intents::GUILD_INVITES
.
Sourcepub const GUILD_MEMBERS: Self
pub const GUILD_MEMBERS: Self
All EventTypeFlags
in Intents::GUILD_MEMBERS
.
Sourcepub const GUILD_MESSAGES: Self
pub const GUILD_MESSAGES: Self
Sourcepub const MESSAGE_POLLS: Self
pub const MESSAGE_POLLS: Self
Sourcepub const GUILD_MESSAGE_REACTIONS: Self
pub const GUILD_MESSAGE_REACTIONS: Self
Sourcepub const GUILD_MESSAGE_TYPING: Self
pub const GUILD_MESSAGE_TYPING: Self
Sourcepub const GUILD_PRESENCES: Self
pub const GUILD_PRESENCES: Self
Sourcepub const GUILD_SCHEDULED_EVENTS: Self
pub const GUILD_SCHEDULED_EVENTS: Self
Sourcepub const GUILD_VOICE_STATES: Self
pub const GUILD_VOICE_STATES: Self
Sourcepub const GUILD_WEBHOOKS: Self
pub const GUILD_WEBHOOKS: Self
Source§impl EventTypeFlags
impl EventTypeFlags
Sourcepub const fn bits(&self) -> u128
pub const fn bits(&self) -> u128
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: u128) -> Option<Self>
pub const fn from_bits(bits: u128) -> Option<Self>
Convert from a bits value.
This method will return None
if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: u128) -> Self
pub const fn from_bits_truncate(bits: u128) -> Self
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: u128) -> Self
pub const fn from_bits_retain(bits: u128) -> Self
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Get a flags value with the bits of a flag with the given name set.
This method will return None
if name
is empty or doesn’t
correspond to any named flag.
Sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
Sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
Sourcepub fn remove(&mut self, other: Self)
pub fn remove(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
remove
won’t truncate other
, but the !
operator will.
Sourcepub fn toggle(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
The bitwise exclusive-or (^
) of the bits in two flags values.
Sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Call insert
when value
is true
or remove
when value
is false
.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
The bitwise and (&
) of the bits in two flags values.
Sourcepub const fn union(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
The bitwise or (|
) of the bits in two flags values.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
The bitwise exclusive-or (^
) of the bits in two flags values.
Sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
The bitwise negation (!
) of the bits in a flags value, truncating the result.
Source§impl EventTypeFlags
impl EventTypeFlags
Sourcepub const fn iter(&self) -> Iter<EventTypeFlags>
pub const fn iter(&self) -> Iter<EventTypeFlags>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub const fn iter_names(&self) -> IterNames<EventTypeFlags>
pub const fn iter_names(&self) -> IterNames<EventTypeFlags>
Yield a set of contained named flags values.
This method is like iter
, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
Source§impl Binary for EventTypeFlags
impl Binary for EventTypeFlags
Source§impl BitAnd for EventTypeFlags
impl BitAnd for EventTypeFlags
Source§impl BitAndAssign for EventTypeFlags
impl BitAndAssign for EventTypeFlags
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
The bitwise and (&
) of the bits in two flags values.
Source§impl BitOr for EventTypeFlags
impl BitOr for EventTypeFlags
Source§fn bitor(self, other: EventTypeFlags) -> Self
fn bitor(self, other: EventTypeFlags) -> Self
The bitwise or (|
) of the bits in two flags values.
Source§type Output = EventTypeFlags
type Output = EventTypeFlags
|
operator.Source§impl BitOrAssign for EventTypeFlags
impl BitOrAssign for EventTypeFlags
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
The bitwise or (|
) of the bits in two flags values.
Source§impl BitXor for EventTypeFlags
impl BitXor for EventTypeFlags
Source§impl BitXorAssign for EventTypeFlags
impl BitXorAssign for EventTypeFlags
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
The bitwise exclusive-or (^
) of the bits in two flags values.
Source§impl Clone for EventTypeFlags
impl Clone for EventTypeFlags
Source§fn clone(&self) -> EventTypeFlags
fn clone(&self) -> EventTypeFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EventTypeFlags
impl Debug for EventTypeFlags
Source§impl Extend<EventTypeFlags> for EventTypeFlags
impl Extend<EventTypeFlags> for EventTypeFlags
Source§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
The bitwise or (|
) of the bits in each flags value.
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl Flags for EventTypeFlags
impl Flags for EventTypeFlags
Source§const FLAGS: &'static [Flag<EventTypeFlags>]
const FLAGS: &'static [Flag<EventTypeFlags>]
Source§fn from_bits_retain(bits: u128) -> EventTypeFlags
fn from_bits_retain(bits: u128) -> EventTypeFlags
§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true
if any unknown bits are set.§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|
) of the bits in two flags values.§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!
). Read more§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^
) of the bits in two flags values.§fn set(&mut self, other: Self, value: bool)where
Self: Sized,
fn set(&mut self, other: Self, value: bool)where
Self: Sized,
Flags::insert
] when value
is true
or [Flags::remove
] when value
is false
.§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&
) of the bits in two flags values.§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!
). Read more§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^
) of the bits in two flags values.§fn complement(self) -> Self
fn complement(self) -> Self
!
) of the bits in a flags value, truncating the result.Source§impl From<EventType> for EventTypeFlags
impl From<EventType> for EventTypeFlags
Source§impl FromIterator<EventTypeFlags> for EventTypeFlags
impl FromIterator<EventTypeFlags> for EventTypeFlags
Source§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
The bitwise or (|
) of the bits in each flags value.
Source§impl Hash for EventTypeFlags
impl Hash for EventTypeFlags
Source§impl IntoIterator for EventTypeFlags
impl IntoIterator for EventTypeFlags
Source§impl LowerHex for EventTypeFlags
impl LowerHex for EventTypeFlags
Source§impl Not for EventTypeFlags
impl Not for EventTypeFlags
Source§impl Octal for EventTypeFlags
impl Octal for EventTypeFlags
Source§impl PartialEq for EventTypeFlags
impl PartialEq for EventTypeFlags
Source§impl PublicFlags for EventTypeFlags
impl PublicFlags for EventTypeFlags
Source§impl Sub for EventTypeFlags
impl Sub for EventTypeFlags
Source§fn sub(self, other: Self) -> Self
fn sub(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
Source§type Output = EventTypeFlags
type Output = EventTypeFlags
-
operator.Source§impl SubAssign for EventTypeFlags
impl SubAssign for EventTypeFlags
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
Source§impl UpperHex for EventTypeFlags
impl UpperHex for EventTypeFlags
impl Copy for EventTypeFlags
impl Eq for EventTypeFlags
impl StructuralPartialEq for EventTypeFlags
Auto Trait Implementations§
impl Freeze for EventTypeFlags
impl RefUnwindSafe for EventTypeFlags
impl Send for EventTypeFlags
impl Sync for EventTypeFlags
impl Unpin for EventTypeFlags
impl UnwindSafe for EventTypeFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.