pub trait PlacementResultExt<T> {
// Required methods
fn with_context(self, context: ErrorContext) -> PlacementResult<T>;
fn context(self, operation: &str, component: &str) -> PlacementResult<T>;
}Expand description
Extension trait for adding context to placement results
Required Methods§
Sourcefn with_context(self, context: ErrorContext) -> PlacementResult<T>
fn with_context(self, context: ErrorContext) -> PlacementResult<T>
Add error context
Sourcefn context(self, operation: &str, component: &str) -> PlacementResult<T>
fn context(self, operation: &str, component: &str) -> PlacementResult<T>
Add simple context