Struct cov::raw::ArcAttr [−]
pub struct ArcAttr { /* fields omitted */ }
Attributes about an Arc
.
Methods
impl ArcAttr
impl ArcAttr
pub const ON_TREE: ArcAttr
ON_TREE: ArcAttr = ArcAttr{bits: 1,}
The arc is a non-instrumentable edge on the spanning tree. This arc will not appear in the corresponding GCDA file.
Equivalent to the GCOV_ARC_ON_TREE
flag.
pub const FAKE: ArcAttr
FAKE: ArcAttr = ArcAttr{bits: 2,}
The arc is fake. Such arcs connect no-return blocks (e.g. infinite loop and -> !
functions) to the exit
block, i.e. in reality this arc should never be taken.
Equivalent to the GCOV_ARC_FAKE
flag.
pub const FALLTHROUGH: ArcAttr
FALLTHROUGH: ArcAttr = ArcAttr{bits: 4,}
The arc is fall-through.
Equivalent to the GCOV_ARC_FALLTHROUGH
flag.
pub const THROW: ArcAttr
THROW: ArcAttr = ArcAttr{bits: 16,}
The arc is taken to a catch
handler.
pub const CALL_NON_RETURN: ArcAttr
CALL_NON_RETURN: ArcAttr = ArcAttr{bits: 32,}
The arc is for a function that abnormally returns.
pub const NONLOCAL_RETURN: ArcAttr
NONLOCAL_RETURN: ArcAttr = ArcAttr{bits: 64,}
The arc is for setjmp
.
pub const UNCONDITIONAL: ArcAttr
UNCONDITIONAL: ArcAttr = ArcAttr{bits: 128,}
The arc is an unconditional branch.
pub fn empty() -> ArcAttr
pub fn empty() -> ArcAttr
Returns an empty set of flags.
pub fn all() -> ArcAttr
pub fn all() -> ArcAttr
Returns the set containing all flags.
pub fn bits(&self) -> u16
pub fn bits(&self) -> u16
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u16) -> Option<ArcAttr>
pub fn from_bits(bits: u16) -> Option<ArcAttr>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u16) -> ArcAttr
pub fn from_bits_truncate(bits: u16) -> ArcAttr
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: ArcAttr) -> bool
pub fn intersects(&self, other: ArcAttr) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: ArcAttr) -> bool
pub fn contains(&self, other: ArcAttr) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: ArcAttr)
pub fn insert(&mut self, other: ArcAttr)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: ArcAttr)
pub fn remove(&mut self, other: ArcAttr)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: ArcAttr)
pub fn toggle(&mut self, other: ArcAttr)
Toggles the specified flags in-place.
pub fn set(&mut self, other: ArcAttr, value: bool)
pub fn set(&mut self, other: ArcAttr, value: bool)
Inserts or removes the specified flags depending on the passed value.
impl ArcAttr
[src]
impl ArcAttr
pub fn from_gcno(flags: u32) -> Result<ArcAttr>
[src]
pub fn from_gcno(flags: u32) -> Result<ArcAttr>
Converts an integer read from GCNO to this attribute.
Errors
Returns UnsupportedAttr
if the GCNO flag is unrecognized.
Trait Implementations
impl Copy for ArcAttr
impl Copy for ArcAttr
impl PartialEq for ArcAttr
impl PartialEq for ArcAttr
fn eq(&self, other: &ArcAttr) -> bool
fn eq(&self, other: &ArcAttr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ArcAttr) -> bool
fn ne(&self, other: &ArcAttr) -> bool
This method tests for !=
.
impl Eq for ArcAttr
impl Eq for ArcAttr
impl Clone for ArcAttr
impl Clone for ArcAttr
fn clone(&self) -> ArcAttr
fn clone(&self) -> ArcAttr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for ArcAttr
impl PartialOrd for ArcAttr
fn partial_cmp(&self, other: &ArcAttr) -> Option<Ordering>
fn partial_cmp(&self, other: &ArcAttr) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &ArcAttr) -> bool
fn lt(&self, other: &ArcAttr) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &ArcAttr) -> bool
fn le(&self, other: &ArcAttr) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &ArcAttr) -> bool
fn gt(&self, other: &ArcAttr) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &ArcAttr) -> bool
fn ge(&self, other: &ArcAttr) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for ArcAttr
impl Ord for ArcAttr
fn cmp(&self, other: &ArcAttr) -> Ordering
fn cmp(&self, other: &ArcAttr) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for ArcAttr
impl Hash for ArcAttr
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Default for ArcAttr
[src]
impl Default for ArcAttr
impl Debug for ArcAttr
impl Debug for ArcAttr
impl Binary for ArcAttr
impl Binary for ArcAttr
impl Octal for ArcAttr
impl Octal for ArcAttr
impl LowerHex for ArcAttr
impl LowerHex for ArcAttr
impl UpperHex for ArcAttr
impl UpperHex for ArcAttr
impl BitOr for ArcAttr
impl BitOr for ArcAttr
type Output = ArcAttr
The resulting type after applying the |
operator.
fn bitor(self, other: ArcAttr) -> ArcAttr
fn bitor(self, other: ArcAttr) -> ArcAttr
Returns the union of the two sets of flags.
impl BitOrAssign for ArcAttr
impl BitOrAssign for ArcAttr
fn bitor_assign(&mut self, other: ArcAttr)
fn bitor_assign(&mut self, other: ArcAttr)
Adds the set of flags.
impl BitXor for ArcAttr
impl BitXor for ArcAttr
type Output = ArcAttr
The resulting type after applying the ^
operator.
fn bitxor(self, other: ArcAttr) -> ArcAttr
fn bitxor(self, other: ArcAttr) -> ArcAttr
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for ArcAttr
impl BitXorAssign for ArcAttr
fn bitxor_assign(&mut self, other: ArcAttr)
fn bitxor_assign(&mut self, other: ArcAttr)
Toggles the set of flags.
impl BitAnd for ArcAttr
impl BitAnd for ArcAttr
type Output = ArcAttr
The resulting type after applying the &
operator.
fn bitand(self, other: ArcAttr) -> ArcAttr
fn bitand(self, other: ArcAttr) -> ArcAttr
Returns the intersection between the two sets of flags.
impl BitAndAssign for ArcAttr
impl BitAndAssign for ArcAttr
fn bitand_assign(&mut self, other: ArcAttr)
fn bitand_assign(&mut self, other: ArcAttr)
Disables all flags disabled in the set.
impl Sub for ArcAttr
impl Sub for ArcAttr
type Output = ArcAttr
The resulting type after applying the -
operator.
fn sub(self, other: ArcAttr) -> ArcAttr
fn sub(self, other: ArcAttr) -> ArcAttr
Returns the set difference of the two sets of flags.
impl SubAssign for ArcAttr
impl SubAssign for ArcAttr
fn sub_assign(&mut self, other: ArcAttr)
fn sub_assign(&mut self, other: ArcAttr)
Disables all flags enabled in the set.
impl Not for ArcAttr
impl Not for ArcAttr
type Output = ArcAttr
The resulting type after applying the !
operator.
fn not(self) -> ArcAttr
fn not(self) -> ArcAttr
Returns the complement of this set of flags.
impl Extend<ArcAttr> for ArcAttr
impl Extend<ArcAttr> for ArcAttr
fn extend<T: IntoIterator<Item = ArcAttr>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ArcAttr>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<ArcAttr> for ArcAttr
impl FromIterator<ArcAttr> for ArcAttr
fn from_iter<T: IntoIterator<Item = ArcAttr>>(iterator: T) -> ArcAttr
fn from_iter<T: IntoIterator<Item = ArcAttr>>(iterator: T) -> ArcAttr
Creates a value from an iterator. Read more
impl Serialize for ArcAttr
[src]
impl Serialize for ArcAttr
fn serialize<S: Serializer>(&self, serializer: S) -> StdResult<S::Ok, S::Error>
[src]
fn serialize<S: Serializer>(&self, serializer: S) -> StdResult<S::Ok, S::Error>
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for ArcAttr
[src]
impl<'de> Deserialize<'de> for ArcAttr
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> StdResult<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> StdResult<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl SerializeWithInterner for ArcAttr
[src]
impl SerializeWithInterner for ArcAttr
fn serialize_with_interner<S: Serializer>(
&self,
serializer: S,
_: &Interner
) -> Result<S::Ok, S::Error>
[src]
fn serialize_with_interner<S: Serializer>(
&self,
serializer: S,
_: &Interner
) -> Result<S::Ok, S::Error>
Serializes this value with help from an [Interner
] that writes [Symbol
]s as strings. Read more
fn with_interner<'si>(
&self,
interner: &'si Interner
) -> WithInterner<'si, &Self>
[src]
fn with_interner<'si>(
&self,
interner: &'si Interner
) -> WithInterner<'si, &Self>
Adorns this object with a string interner. Read more