pub enum VariableCapture {
Arguments,
Locals,
Only(Vec<String>),
None,
}
Expand description
Option for capturing variables.
Variants§
Arguments
Capture all arguments
Locals
Capture all local variables
Only(Vec<String>)
Capture only these variables by name
None
Capture nothing
Trait Implementations§
Source§impl Clone for VariableCapture
impl Clone for VariableCapture
Source§fn clone(&self) -> VariableCapture
fn clone(&self) -> VariableCapture
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 VariableCapture
impl Debug for VariableCapture
Source§impl Default for VariableCapture
impl Default for VariableCapture
Source§fn default() -> VariableCapture
fn default() -> VariableCapture
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VariableCapture
impl<'de> Deserialize<'de> for VariableCapture
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariableCapture, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariableCapture, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VariableCapture
impl PartialEq for VariableCapture
Source§impl Serialize for VariableCapture
impl Serialize for VariableCapture
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for VariableCapture
impl StructuralPartialEq for VariableCapture
Auto Trait Implementations§
impl Freeze for VariableCapture
impl RefUnwindSafe for VariableCapture
impl Send for VariableCapture
impl Sync for VariableCapture
impl Unpin for VariableCapture
impl UnwindSafe for VariableCapture
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.