[−][src]Struct gluon_vm::thread::HookFlags
Implementations
impl HookFlags
[src]
pub const LINE_FLAG: HookFlags
[src]
Call the hook when execution moves to a new line
pub const CALL_FLAG: HookFlags
[src]
Call the hook when a function is called
pub const fn empty() -> HookFlags
[src]
Returns an empty set of flags
pub const fn all() -> HookFlags
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u8
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u8) -> Option<HookFlags>
[src]
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) -> HookFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u8) -> HookFlags
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: HookFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: HookFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: HookFlags)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: HookFlags)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: HookFlags)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: HookFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for HookFlags
[src]
impl BitAnd<HookFlags> for HookFlags
[src]
type Output = HookFlags
The resulting type after applying the &
operator.
fn bitand(self, other: HookFlags) -> HookFlags
[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<HookFlags> for HookFlags
[src]
fn bitand_assign(&mut self, other: HookFlags)
[src]
Disables all flags disabled in the set.
impl BitOr<HookFlags> for HookFlags
[src]
type Output = HookFlags
The resulting type after applying the |
operator.
fn bitor(self, other: HookFlags) -> HookFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<HookFlags> for HookFlags
[src]
fn bitor_assign(&mut self, other: HookFlags)
[src]
Adds the set of flags.
impl BitXor<HookFlags> for HookFlags
[src]
type Output = HookFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: HookFlags) -> HookFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<HookFlags> for HookFlags
[src]
fn bitxor_assign(&mut self, other: HookFlags)
[src]
Toggles the set of flags.
impl Clone for HookFlags
[src]
impl Copy for HookFlags
[src]
impl Debug for HookFlags
[src]
impl Default for HookFlags
[src]
impl Eq for HookFlags
[src]
impl Extend<HookFlags> for HookFlags
[src]
fn extend<T: IntoIterator<Item = HookFlags>>(&mut self, iterator: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<HookFlags> for HookFlags
[src]
fn from_iter<T: IntoIterator<Item = HookFlags>>(iterator: T) -> HookFlags
[src]
impl Hash for HookFlags
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for HookFlags
[src]
impl Not for HookFlags
[src]
type Output = HookFlags
The resulting type after applying the !
operator.
fn not(self) -> HookFlags
[src]
Returns the complement of this set of flags.
impl Octal for HookFlags
[src]
impl Ord for HookFlags
[src]
fn cmp(&self, other: &HookFlags) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<HookFlags> for HookFlags
[src]
impl PartialOrd<HookFlags> for HookFlags
[src]
fn partial_cmp(&self, other: &HookFlags) -> Option<Ordering>
[src]
fn lt(&self, other: &HookFlags) -> bool
[src]
fn le(&self, other: &HookFlags) -> bool
[src]
fn gt(&self, other: &HookFlags) -> bool
[src]
fn ge(&self, other: &HookFlags) -> bool
[src]
impl StructuralEq for HookFlags
[src]
impl StructuralPartialEq for HookFlags
[src]
impl Sub<HookFlags> for HookFlags
[src]
type Output = HookFlags
The resulting type after applying the -
operator.
fn sub(self, other: HookFlags) -> HookFlags
[src]
Returns the set difference of the two sets of flags.
impl SubAssign<HookFlags> for HookFlags
[src]
fn sub_assign(&mut self, other: HookFlags)
[src]
Disables all flags enabled in the set.
impl UpperHex for HookFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for HookFlags
impl Send for HookFlags
impl Sync for HookFlags
impl Unpin for HookFlags
impl UnwindSafe for HookFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<Id> AsId<Id> for Id where
Id: ?Sized,
[src]
Id: ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'_, T> Captures<'_> for T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
[src]
type Remainder = Choices
pub fn subset(
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
[src]
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastArc for T where
T: Downcast + Send + Sync,
[src]
T: Downcast + Send + Sync,
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<D, T> FromPtr<D> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U, I> LiftInto<U, I> for T where
U: LiftFrom<T, I>,
[src]
U: LiftFrom<T, I>,
impl<N> NodeTrait for N where
N: Copy + Ord + Hash,
[src]
N: Copy + Ord + Hash,
impl<Source> Sculptor<HNil, HNil> for Source
[src]
type Remainder = Source
pub fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,