pub struct Resolution<'a> { /* private fields */ }
Expand description
Represents a resolution of an WAC document.
Implementations§
Source§impl Resolution<'_>
impl Resolution<'_>
Sourcepub fn graph(&self) -> &CompositionGraph
pub fn graph(&self) -> &CompositionGraph
Gets the resolved composition graph.
Sourcepub fn encode(&self, options: EncodeOptions<'_>) -> ResolutionResult<Vec<u8>>
pub fn encode(&self, options: EncodeOptions<'_>) -> ResolutionResult<Vec<u8>>
Encodes the resolution into a component.
This method handles translating encoding errors into resolution errors that contain source span information.
Sourcepub fn into_graph(self) -> CompositionGraph
pub fn into_graph(self) -> CompositionGraph
Consumes the resolution and returns the underlying composition graph.
Note that encoding the returned graph may still fail as a result of merging implicit instantiation arguments.
Auto Trait Implementations§
impl<'a> Freeze for Resolution<'a>
impl<'a> RefUnwindSafe for Resolution<'a>
impl<'a> Send for Resolution<'a>
impl<'a> Sync for Resolution<'a>
impl<'a> Unpin for Resolution<'a>
impl<'a> UnwindSafe for Resolution<'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