pub struct Laws { /* private fields */ }Expand description
The laws attached to an agent or graph, checked at build.
0.2 stores and validates them; no run proves them yet. auto asks
the verifier to also derive laws from the code, and defaults to true.
Implementations§
Source§impl Laws
impl Laws
Sourcepub fn paths(&self) -> &[PathBuf]
pub fn paths(&self) -> &[PathBuf]
Returns the law files, as absolute paths resolved at build.
Each is an existing .bend file of at most 1 MiB of UTF-8. Paths
are trusted host input: symlinks and any directory are allowed.
Trait Implementations§
impl Eq for Laws
impl StructuralPartialEq for Laws
Auto Trait Implementations§
impl Forget for Laws
impl Freeze for Laws
impl Move for Laws
impl RefUnwindSafe for Laws
impl Send for Lawswhere
RawVecInner: Send,
impl Sync for Lawswhere
RawVecInner: Sync,
impl Unpin for Laws
impl UnsafeUnpin for Lawswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Lawswhere
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.