pub enum Container<L: LinkingScheme> {
Struct(StructWithSerde<L>),
Enum(EnumWithSerde<L>),
Tuple(Tuple<L>),
Option {
value: L::TypeLink,
},
Array {
len: usize,
value: L::TypeLink,
},
Vec {
value: L::TypeLink,
},
Map {
key: L::TypeLink,
value: L::TypeLink,
},
}Variants§
Implementations§
Source§impl<L: LinkingScheme> Container<L>
impl<L: LinkingScheme> Container<L>
Sourcepub fn num_children(&self) -> usize
pub fn num_children(&self) -> usize
Returns the number of child types required by this container.
pub fn serde(&self) -> ContainerSerdeMetadata
Trait Implementations§
impl<L: Eq + LinkingScheme> Eq for Container<L>
impl<L: LinkingScheme> StructuralPartialEq for Container<L>
Auto Trait Implementations§
impl<L> Freeze for Container<L>
impl<L> RefUnwindSafe for Container<L>
impl<L> Send for Container<L>
impl<L> Sync for Container<L>
impl<L> Unpin for Container<L>
impl<L> UnsafeUnpin for Container<L>
impl<L> UnwindSafe for Container<L>
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