pub struct Site { /* private fields */ }Expand description
One site that adopts a stamp: what the manifest calls it, how it reaches the definition, the reach it writes, and one argument per declared seat.
The arguments are as many as the pattern declares seats, settled where the site meets the pattern rather than counted a second time here.
Implementations§
Source§impl Site
impl Site
Sourcepub fn declared(
name: &str,
root: SiteRoot,
reach: Visibility,
arguments: Vec<GeneratedTree>,
) -> Result<Self, StampError>
pub fn declared( name: &str, root: SiteRoot, reach: Visibility, arguments: Vec<GeneratedTree>, ) -> Result<Self, StampError>
Declare one site that adopts a stamp.
The name is a label rather than a spelling: it is what the manifest calls this landing, and no token is ever written from it.
§Errors
Returns StampError::ArgumentsUnbounded where the arguments outgrow the declared magnitude.
Whether they are the RIGHT arguments is settled where the site meets its pattern, in Stamp::declared.
Sourcepub const fn reach(&self) -> Visibility
pub const fn reach(&self) -> Visibility
The reach this site writes.
Sourcepub fn arguments(&self) -> &[GeneratedTree]
pub fn arguments(&self) -> &[GeneratedTree]
The material this site supplies, one argument per declared seat, in seat order.
Trait Implementations§
impl Eq for Site
impl StructuralPartialEq for Site
Auto Trait Implementations§
impl Freeze for Site
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnsafeUnpin for Site
impl UnwindSafe for Site
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