pub struct WasmAstFacts { /* private fields */ }Expand description
Wasm-бекенд одного ast-facts-компонента — доккоментар
crate::detector::WasmDetector.
Implementations§
Source§impl WasmAstFacts
impl WasmAstFacts
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_ast_facts_fn(self) -> AstFactsFn
pub fn into_ast_facts_fn(self) -> AstFactsFn
Перетворює на AstFactsFn. ast-facts.wit (facts: func(path: string) -> string) не має каналу помилки взагалі — той самий брак,
що вже несе Rust-сигнатура (Arc<dyn Fn(PathBuf) -> BoxFuture<'static, String>>, без Option/Result). Інфраструктурний
збій викликового шляху (компонент не інстанціювався, трап) не має
куди піти, крім stderr-логу й порожнього рядка — той самий сентинел,
яким attempt.rs уже описує “інструмент недоступний” на рівні поля
(тут — на рівні одного виклику).
Auto Trait Implementations§
impl !RefUnwindSafe for WasmAstFacts
impl !UnwindSafe for WasmAstFacts
impl Freeze for WasmAstFacts
impl Send for WasmAstFacts
impl Sync for WasmAstFacts
impl Unpin for WasmAstFacts
impl UnsafeUnpin for WasmAstFacts
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