pub struct SceneConnection {
pub signal: SmolStr,
pub signal_span: TextRange,
pub from: SmolStr,
pub from_span: TextRange,
pub to: SmolStr,
pub to_span: TextRange,
pub method: SmolStr,
pub method_span: TextRange,
pub header_span: TextRange,
}Expand description
One [connection …] section — a signal wired to a method in the editor. The four spans are the
inner identifier byte ranges (surrounding quotes excluded), so a rename rewrites exactly the
name. A connection has no body.
Fields§
§signal: SmolStrsignal="…" — the emitted signal name (a member of the from node’s type).
signal_span: TextRangeByte span of the signal= value (quotes excluded).
from: SmolStrfrom="…" — the emitter node path (root-relative; "." = root). Empty if absent.
from_span: TextRangeByte span of the from= value (quotes excluded).
to: SmolStrto="…" — the receiver node path (the node whose attached script declares method).
to_span: TextRangeByte span of the to= value (quotes excluded).
method: SmolStrmethod="…" — the receiving method name (a member of the to node’s attached script).
method_span: TextRangeByte span of the method= value (quotes excluded).
header_span: TextRangeByte span of the whole [connection …] header line.
Trait Implementations§
Source§impl Clone for SceneConnection
impl Clone for SceneConnection
Source§fn clone(&self) -> SceneConnection
fn clone(&self) -> SceneConnection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more