pub struct HostPacks { /* private fields */ }Expand description
The bundle’s packs, then the store’s, as compmd::host::Packs. It shares the bundle and the store, which the host
keeps, so the processor, which keeps its packs while it processes, can be given it.
let packs = HostPacks::new(Arc::new(bundle), Arc::new(NoStore));
let resolved = Processor::new("a.comp.md", "# A\n").parse(&ParseOptions::default()).resolve((), packs, &Ambient::default());Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HostPacks
impl !UnwindSafe for HostPacks
impl Forget for HostPacks
impl Freeze for HostPacks
impl Move for HostPacks
impl Send for HostPacks
impl Sync for HostPacks
impl Unpin for HostPacks
impl UnsafeUnpin for HostPacks
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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