pub(crate) struct PolicyValue {
pub(crate) value: bool,
pub(crate) priority: u32,
}Expand description
A flag contributed at a given priority. Lower priorities win.
Fields§
§value: boolThe contributed value.
priority: u32Lower priorities override higher ones. Equal priorities must agree.
Trait Implementations§
Source§impl Clone for PolicyValue
impl Clone for PolicyValue
Source§fn clone(&self) -> PolicyValue
fn clone(&self) -> PolicyValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PolicyValue
impl Debug for PolicyValue
Auto Trait Implementations§
impl Freeze for PolicyValue
impl RefUnwindSafe for PolicyValue
impl Send for PolicyValue
impl Sync for PolicyValue
impl Unpin for PolicyValue
impl UnsafeUnpin for PolicyValue
impl UnwindSafe for PolicyValue
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