[−]Struct rustpython_bytecode::bytecode::FunctionOpArg
Methods
impl FunctionOpArg
[−]
pub const HAS_DEFAULTS: FunctionOpArg
pub const HAS_KW_ONLY_DEFAULTS: FunctionOpArg
pub const HAS_ANNOTATIONS: FunctionOpArg
pub const fn empty() -> FunctionOpArg
[−]
Returns an empty set of flags
pub const fn all() -> FunctionOpArg
[−]
Returns the set containing all flags.
pub const fn bits(&self) -> u8
[−]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u8) -> Option<FunctionOpArg>
[−]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u8) -> FunctionOpArg
[−]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u8) -> FunctionOpArg
[−]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[−]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[−]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: FunctionOpArg) -> bool
[−]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: FunctionOpArg) -> bool
[−]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: FunctionOpArg)
[−]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: FunctionOpArg)
[−]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: FunctionOpArg)
[−]
Toggles the specified flags in-place.
pub fn set(&mut self, other: FunctionOpArg, value: bool)
[−]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Eq for FunctionOpArg
impl Clone for FunctionOpArg
[+]
impl PartialOrd<FunctionOpArg> for FunctionOpArg
[+]
impl PartialEq<FunctionOpArg> for FunctionOpArg
[+]
impl Ord for FunctionOpArg
[+]
impl Extend<FunctionOpArg> for FunctionOpArg
[+]
impl Copy for FunctionOpArg
impl Hash for FunctionOpArg
[+]
impl Sub<FunctionOpArg> for FunctionOpArg
[+]
impl SubAssign<FunctionOpArg> for FunctionOpArg
[+]
impl Not for FunctionOpArg
[+]
impl BitAnd<FunctionOpArg> for FunctionOpArg
[+]
impl BitOr<FunctionOpArg> for FunctionOpArg
[+]
impl BitXor<FunctionOpArg> for FunctionOpArg
[+]
impl BitAndAssign<FunctionOpArg> for FunctionOpArg
[+]
impl BitOrAssign<FunctionOpArg> for FunctionOpArg
[+]
impl BitXorAssign<FunctionOpArg> for FunctionOpArg
[+]
impl Debug for FunctionOpArg
[+]
impl FromIterator<FunctionOpArg> for FunctionOpArg
[+]
impl Octal for FunctionOpArg
[+]
impl Binary for FunctionOpArg
[+]
impl LowerHex for FunctionOpArg
[+]
impl UpperHex for FunctionOpArg
[+]
impl Serialize for FunctionOpArg
[src][+]
impl<'de> Deserialize<'de> for FunctionOpArg
[src][+]
Auto Trait Implementations
impl Send for FunctionOpArg
impl Unpin for FunctionOpArg
impl Sync for FunctionOpArg
impl RefUnwindSafe for FunctionOpArg
impl UnwindSafe for FunctionOpArg
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> From<T> for T
[src][+]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,