pub struct PolicyCompiler { /* private fields */ }Implementations§
Source§impl PolicyCompiler
impl PolicyCompiler
pub fn new(semantics_version: String, compatibility_version: String) -> Self
pub fn compile( &self, raw_policies: Vec<RawPolicy>, ) -> Result<Vec<AuthorityPolicy>, AuthorityError>
pub fn semantics_version(&self) -> &str
pub fn compatibility_version(&self) -> &str
Auto Trait Implementations§
impl Forget for PolicyCompiler
impl Freeze for PolicyCompiler
impl Move for PolicyCompiler
impl RefUnwindSafe for PolicyCompiler
impl Send for PolicyCompilerwhere
RawVecInner: Send,
impl Sync for PolicyCompilerwhere
RawVecInner: Sync,
impl Unpin for PolicyCompiler
impl UnsafeUnpin for PolicyCompiler
impl UnwindSafe for PolicyCompilerwhere
RawVecInner: UnwindSafe,
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