pub struct WasmT0 { /* private fields */ }Expand description
Wasm-бекенд одного t0-компонента — доккоментар
crate::detector::WasmDetector.
Implementations§
Source§impl WasmT0
impl WasmT0
Sourcepub fn from_file(
repo_root: impl Into<PathBuf>,
wasm_path: impl AsRef<Path>,
) -> Result<Self>
pub fn from_file( repo_root: impl Into<PathBuf>, wasm_path: impl AsRef<Path>, ) -> Result<Self>
Доккоментар crate::detector::WasmDetector::from_file.
Sourcepub fn into_t0_fn(self) -> T0Fn
pub fn into_t0_fn(self) -> T0Fn
Перетворює на T0Fn. t0.wit (plan: func() -> edit-plan) не
має каналу помилки — той самий брак, що вже несе Rust-сигнатура
(Arc<dyn Fn() -> BoxFuture<'static, EditPlan>>, без Result).
Інфраструктурний збій викликового шляху мапиться в
EditPlan::empty() — БЕЗПЕЧНИЙ сентинел “нічого не робимо”, той
самий, яким порожній план уже означає “T0 нічого не зробив”
(доккоментар edit_plan.rs); guest, що не зміг порахувати план,
НІКОЛИ не мапиться на “план, що щось змінює”.
Auto Trait Implementations§
impl !RefUnwindSafe for WasmT0
impl !UnwindSafe for WasmT0
impl Freeze for WasmT0
impl Send for WasmT0
impl Sync for WasmT0
impl Unpin for WasmT0
impl UnsafeUnpin for WasmT0
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