pub struct FlagConstant {
pub name: String,
pub value: String,
pub line: u32,
pub col: u32,
pub reads: Vec<FlagConstantRead>,
}Expand description
A module-level const with a flag-style name and a literal value, such
as const FEATURE_NEW_UI = true, that a guard in the same module tests.
The flag retirement report reads these. They are not in the per-site flag findings.
Fields§
§name: StringBinding name.
value: StringThe literal value as source code: true, 0 or 'on'.
line: u321-based line of the binding.
col: u320-based byte column of the binding.
reads: Vec<FlagConstantRead>Guard tests that read the binding, in source order.
Trait Implementations§
Source§impl Clone for FlagConstant
impl Clone for FlagConstant
Source§impl Debug for FlagConstant
impl Debug for FlagConstant
impl<'__de> Decode<'__de> for FlagConstantwhere
'__de:,
impl Encode for FlagConstant
impl Eq for FlagConstant
Source§impl PartialEq for FlagConstant
impl PartialEq for FlagConstant
impl StructuralPartialEq for FlagConstant
Auto Trait Implementations§
impl Freeze for FlagConstant
impl RefUnwindSafe for FlagConstant
impl Send for FlagConstant
impl Sync for FlagConstant
impl Unpin for FlagConstant
impl UnsafeUnpin for FlagConstant
impl UnwindSafe for FlagConstant
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,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
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.