pub enum DemangleAssembly {
Demangle,
Mangle,
}
Expand description
Determines whether assembly output is demangled or mangled.
Demangle
: Convert symbol names to human-readable form.Mangle
: Keep symbol names mangled (default compiler format).
Variants§
Trait Implementations§
Source§impl ChoiceParameter for DemangleAssembly
impl ChoiceParameter for DemangleAssembly
Source§fn list() -> Vec<CommandParameterChoice>
fn list() -> Vec<CommandParameterChoice>
Returns all possible choices for this parameter, in the order they will appear in Discord.
Source§fn from_index(index: usize) -> Option<Self>
fn from_index(index: usize) -> Option<Self>
Returns an instance of
Self
corresponding to the given index into Self::list()
Source§impl Clone for DemangleAssembly
impl Clone for DemangleAssembly
Source§fn clone(&self) -> DemangleAssembly
fn clone(&self) -> DemangleAssembly
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DemangleAssembly
impl Debug for DemangleAssembly
Source§impl<'de> Deserialize<'de> for DemangleAssembly
impl<'de> Deserialize<'de> for DemangleAssembly
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DemangleAssembly
impl PartialEq for DemangleAssembly
Source§impl Serialize for DemangleAssembly
impl Serialize for DemangleAssembly
impl Copy for DemangleAssembly
impl Eq for DemangleAssembly
impl StructuralPartialEq for DemangleAssembly
Auto Trait Implementations§
impl Freeze for DemangleAssembly
impl RefUnwindSafe for DemangleAssembly
impl Send for DemangleAssembly
impl Sync for DemangleAssembly
impl Unpin for DemangleAssembly
impl UnwindSafe for DemangleAssembly
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<'a, T> PopArgument<'a> for Twhere
T: ChoiceParameter,
impl<'a, T> PopArgument<'a> for Twhere
T: ChoiceParameter,
Source§fn pop_from<'life0, 'life1, 'async_trait>(
args: &'a str,
attachment_index: usize,
ctx: &'life0 Context,
msg: &'life1 Message,
) -> Pin<Box<dyn Future<Output = Result<(&'a str, usize, T), (Box<dyn Error + Send + Sync>, Option<String>)>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn pop_from<'life0, 'life1, 'async_trait>(
args: &'a str,
attachment_index: usize,
ctx: &'life0 Context,
msg: &'life1 Message,
) -> Pin<Box<dyn Future<Output = Result<(&'a str, usize, T), (Box<dyn Error + Send + Sync>, Option<String>)>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Source§impl<T> SlashArgument for Twhere
T: ChoiceParameter,
impl<T> SlashArgument for Twhere
T: ChoiceParameter,
Source§fn extract<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 Context,
_: &'life1 CommandInteraction,
value: &'life2 ResolvedValue<'life3>,
) -> Pin<Box<dyn Future<Output = Result<T, SlashArgError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
T: 'async_trait,
fn extract<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 Context,
_: &'life1 CommandInteraction,
value: &'life2 ResolvedValue<'life3>,
) -> Pin<Box<dyn Future<Output = Result<T, SlashArgError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
T: 'async_trait,
Extract a Rust value of type T from the slash command argument, given via a
serenity::json::Value
. Read moreSource§fn create(builder: CreateCommandOption) -> CreateCommandOption
fn create(builder: CreateCommandOption) -> CreateCommandOption
Create a slash command parameter equivalent to type T. Read more