pub struct Declaration { /* private fields */ }Expand description
What one mutation helper body states on its own: where the surface lands, the policy it is lowered under, and which point and owner fact its site stands at.
Everything else a site carries is token material and semantic bytes a door computes from the declaration it captured, so the helper states what an author can state and the door completes it.
Implementations§
Source§impl Declaration
impl Declaration
Sourcepub const fn captured(
address: Address,
policy: Policy,
point: Name,
fact: Name,
) -> Self
pub const fn captured( address: Address, policy: Policy, point: Name, fact: Name, ) -> Self
Bind what one helper body stated.
Total: every part was admitted by its own road before it reached this one.
Sourcepub const fn address(&self) -> &Address
pub const fn address(&self) -> &Address
Where the rendered surface lands and what it is invoked by.
Sourcepub fn completed(
self,
order: Vec<GeneratedToken>,
production: Vec<GeneratedToken>,
unchanged: Vec<u8>,
alternatives: Vec<Alternative>,
) -> Result<Surface, DeclarationError>
pub fn completed( self, order: Vec<GeneratedToken>, production: Vec<GeneratedToken>, unchanged: Vec<u8>, alternatives: Vec<Alternative>, ) -> Result<Surface, DeclarationError>
Complete this declaration with the material only the door that captured it can compute.
§Errors
Returns whatever Site::declared refuses with.
Trait Implementations§
Source§impl Clone for Declaration
impl Clone for Declaration
Source§fn clone(&self) -> Declaration
fn clone(&self) -> Declaration
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 Declaration
impl Debug for Declaration
impl Eq for Declaration
Source§impl Hash for Declaration
impl Hash for Declaration
Source§impl PartialEq for Declaration
impl PartialEq for Declaration
impl StructuralPartialEq for Declaration
Auto Trait Implementations§
impl Freeze for Declaration
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnsafeUnpin for Declaration
impl UnwindSafe for Declaration
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