pub struct ResolvedUnion {
pub(crate) writer_to_reader: Arc<[Option<(usize, Promotion)>]>,
pub(crate) writer_is_union: bool,
pub(crate) reader_is_union: bool,
}
Expand description
Information required to resolve a writer union against a reader union (or single type).
Fields§
§writer_to_reader: Arc<[Option<(usize, Promotion)>]>
For each writer branch index, the reader branch index and how to read it.
None
means the writer branch doesn’t resolve against the reader.
writer_is_union: bool
Whether the writer schema at this site is a union
reader_is_union: bool
Whether the reader schema at this site is a union
Trait Implementations§
Source§impl Clone for ResolvedUnion
impl Clone for ResolvedUnion
Source§fn clone(&self) -> ResolvedUnion
fn clone(&self) -> ResolvedUnion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResolvedUnion
impl Debug for ResolvedUnion
Source§impl PartialEq for ResolvedUnion
impl PartialEq for ResolvedUnion
impl StructuralPartialEq for ResolvedUnion
Auto Trait Implementations§
impl Freeze for ResolvedUnion
impl RefUnwindSafe for ResolvedUnion
impl Send for ResolvedUnion
impl Sync for ResolvedUnion
impl Unpin for ResolvedUnion
impl UnwindSafe for ResolvedUnion
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