pub struct SourceMatter {
pub label: String,
pub body: BodyFragment,
pub inherited_outputs: Vec<String>,
pub options: CompileOptions,
pub result_bindings: Option<String>,
}Expand description
Source matter for ScopeKernel::build_under: what
PolydatMatter::builder().source(..) carried.
Fields§
§label: StringThe scope’s label, for diagnostics.
body: BodyFragmentThe scope’s body.
inherited_outputs: Vec<String>Outputs the scope re-emits from its parent rather than declares.
options: CompileOptionsCompile options.
result_bindings: Option<String>result: bindings, when the scope has any.
Implementations§
Source§impl SourceMatter
impl SourceMatter
Sourcepub fn source(
label: impl Into<String>,
source: impl Into<String>,
options: CompileOptions,
) -> Self
pub fn source( label: impl Into<String>, source: impl Into<String>, options: CompileOptions, ) -> Self
Matter from Polydat source text.
Sourcepub fn statements(
label: impl Into<String>,
statements: Vec<Statement>,
options: CompileOptions,
) -> Self
pub fn statements( label: impl Into<String>, statements: Vec<Statement>, options: CompileOptions, ) -> Self
Matter from built statements (SRD-84 graph matter).
Auto Trait Implementations§
impl Freeze for SourceMatter
impl RefUnwindSafe for SourceMatter
impl Send for SourceMatter
impl Sync for SourceMatter
impl Unpin for SourceMatter
impl UnsafeUnpin for SourceMatter
impl UnwindSafe for SourceMatter
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more