pub struct UnionSchemaIr { /* private fields */ }Implementations§
Source§impl UnionSchemaIr
impl UnionSchemaIr
pub fn new( variants: IndexMap<String, SchemaNodeIrId>, unambiguous: IndexSet<String>, deny_untagged: IndexSet<String>, interop: UnionInteropIr, ) -> Self
pub fn variants(&self) -> &IndexMap<String, SchemaNodeIrId>
pub fn variants_mut(&mut self) -> &mut IndexMap<String, SchemaNodeIrId>
pub fn unambiguous(&self) -> &IndexSet<String>
pub fn unambiguous_mut(&mut self) -> &mut IndexSet<String>
pub fn deny_untagged(&self) -> &IndexSet<String>
pub fn deny_untagged_mut(&mut self) -> &mut IndexSet<String>
pub fn interop(&self) -> &UnionInteropIr
pub fn interop_mut(&mut self) -> &mut UnionInteropIr
Trait Implementations§
Source§impl Clone for UnionSchemaIr
impl Clone for UnionSchemaIr
Source§fn clone(&self) -> UnionSchemaIr
fn clone(&self) -> UnionSchemaIr
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 UnionSchemaIr
impl Debug for UnionSchemaIr
Source§impl PartialEq for UnionSchemaIr
impl PartialEq for UnionSchemaIr
impl StructuralPartialEq for UnionSchemaIr
Auto Trait Implementations§
impl Freeze for UnionSchemaIr
impl RefUnwindSafe for UnionSchemaIr
impl Send for UnionSchemaIr
impl Sync for UnionSchemaIr
impl Unpin for UnionSchemaIr
impl UnsafeUnpin for UnionSchemaIr
impl UnwindSafe for UnionSchemaIr
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