pub struct GraphAssetIndex<'a>(pub &'a ContentGraph);Expand description
Adapts ContentGraph to the AssetIndex trait.
Wraps a borrowed ContentGraph so that resolve_asset_ref (the pure
shared engine in moss_core::resolve::asset_class) can be driven by the
build-time in-memory index — identical to how FsAssetIndex in src-tauri
drives it from the live filesystem. Exposed pub so integration tests and
editor↔build parity tests can construct both adapters over the same file set.
Tuple Fields§
§0: &'a ContentGraphTrait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GraphAssetIndex<'a>
impl<'a> RefUnwindSafe for GraphAssetIndex<'a>
impl<'a> Send for GraphAssetIndex<'a>
impl<'a> Sync for GraphAssetIndex<'a>
impl<'a> Unpin for GraphAssetIndex<'a>
impl<'a> UnsafeUnpin for GraphAssetIndex<'a>
impl<'a> UnwindSafe for GraphAssetIndex<'a>
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