PolicySettings

Trait PolicySettings 

Source
pub trait PolicySettings {
    // Required methods
    fn style_manager(&self) -> &OptStyleManager;
    fn style_manager_mut(&mut self) -> &mut OptStyleManager;
    fn strict(&self) -> bool;
    fn styles(&self) -> &[UserStyle];
    fn no_delay(&self) -> Option<&[String]>;
    fn overload(&self) -> bool;
    fn prepolicy(&self) -> bool;
    fn set_strict(&mut self, strict: bool) -> &mut Self;
    fn set_styles(&mut self, styles: Vec<UserStyle>) -> &mut Self;
    fn set_no_delay(&mut self, name: impl Into<String>) -> &mut Self;
    fn set_overload(&mut self, overload: bool) -> &mut Self;
    fn set_prepolicy(&mut self, prepolicy: bool) -> &mut Self;
}

Required Methods§

Source

fn style_manager(&self) -> &OptStyleManager

Source

fn style_manager_mut(&mut self) -> &mut OptStyleManager

Source

fn strict(&self) -> bool

Source

fn styles(&self) -> &[UserStyle]

Source

fn no_delay(&self) -> Option<&[String]>

Source

fn overload(&self) -> bool

Source

fn prepolicy(&self) -> bool

Source

fn set_strict(&mut self, strict: bool) -> &mut Self

Source

fn set_styles(&mut self, styles: Vec<UserStyle>) -> &mut Self

Source

fn set_no_delay(&mut self, name: impl Into<String>) -> &mut Self

Source

fn set_overload(&mut self, overload: bool) -> &mut Self

Source

fn set_prepolicy(&mut self, prepolicy: bool) -> &mut Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S, Chk> PolicySettings for DelayPolicy<S, Chk>

Source§

impl<S, P> PolicySettings for Parser<S, P>
where P: Policy<Set = S> + PolicySettings,

Source§

impl<Set, Chk> PolicySettings for FwdPolicy<Set, Chk>

Source§

impl<Set, Chk> PolicySettings for SeqPolicy<Set, Chk>