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 Forget for SourceMatter
impl Freeze for SourceMatterwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Statement>: Freeze,
PhantomData<String>: Freeze,
PhantomData<PathBuf>: Freeze,
impl Move for SourceMatter
impl RefUnwindSafe for SourceMatter
impl Send for SourceMatter
impl Sync for SourceMatter
impl Unpin for SourceMatter
impl UnsafeUnpin for SourceMatterwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Statement>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
impl UnwindSafe for SourceMatterwhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<ForSource>: UnwindSafe,
NonNull<u8>: UnwindSafe,
BoxRaw<Comprehension>: UnwindSafe,
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