pub struct Translated {
pub rules: RuleSet,
pub warnings: Vec<String>,
}Expand description
The result of a translation: the target RuleSet (safe by
construction — see the module doc’s step 5) plus one warning string per
pattern whose fixed point differed from the source, safe or not.
Fields§
§rules: RuleSetThe target first-match deny→ask→allow rule set.
warnings: Vec<String>One entry per pattern whose translated fixed point differed from the source (the risk-1 mitigation: never silent).
Trait Implementations§
Source§impl Clone for Translated
impl Clone for Translated
Source§fn clone(&self) -> Translated
fn clone(&self) -> Translated
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 moreAuto Trait Implementations§
impl Freeze for Translated
impl RefUnwindSafe for Translated
impl Send for Translated
impl Sync for Translated
impl Unpin for Translated
impl UnsafeUnpin for Translated
impl UnwindSafe for Translated
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