pub struct TypeAggregator { /* private fields */ }Expand description
Used to aggregate types defined in different Types collections.
A type aggregator can be used to merge compatible definitions of the same type into a single supertype definition stored within the aggregator; this is useful for imports that are shared across different instantiation arguments.
It works by first recursively remapping a type from a foreign Types
collection into its own Types collection; any further attempt
to aggregate the type causes a merge of type definitions provided
they are compatible.
Implementations§
Trait Implementations§
Source§impl Debug for TypeAggregator
impl Debug for TypeAggregator
Source§impl Default for TypeAggregator
impl Default for TypeAggregator
Source§fn default() -> TypeAggregator
fn default() -> TypeAggregator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TypeAggregator
impl RefUnwindSafe for TypeAggregator
impl Send for TypeAggregator
impl Sync for TypeAggregator
impl Unpin for TypeAggregator
impl UnwindSafe for TypeAggregator
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