pub struct SignalDecl {
pub name: Arc<str>,
pub ty: Ty,
pub expr: Core,
pub tier: Tier,
pub effects: Vec<Effect>,
pub row: Row,
pub tier_is_annotated: bool,
pub render: Option<(Mode, Span)>,
pub span: Span,
pub tier_span: Span,
}Expand description
A top-level signal or stream declaration — the wiring of the program.
Fields§
§name: Arc<str>§ty: Ty§expr: Core§tier: Tier§effects: Vec<Effect>§row: Row§tier_is_annotated: bool§render: Option<(Mode, Span)>@render(client|server) — where this component’s view runs, when it said so
(crate::render). Only a Signal[Html] can carry one, and nothing else reads it.
span: Span§tier_span: SpanTrait Implementations§
Source§impl Clone for SignalDecl
impl Clone for SignalDecl
Source§fn clone(&self) -> SignalDecl
fn clone(&self) -> SignalDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SignalDecl
impl RefUnwindSafe for SignalDecl
impl Send for SignalDecl
impl Sync for SignalDecl
impl Unpin for SignalDecl
impl UnwindSafe for SignalDecl
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