pub struct ContextSet { /* private fields */ }Expand description
A set whose elements use one owned concrete Flow codec.
Implementations§
Source§impl ContextSet
impl ContextSet
Sourcepub fn new(codec: ContextCodec, values: Vec<Json>) -> Result<Self, DecodeError>
pub fn new(codec: ContextCodec, values: Vec<Json>) -> Result<Self, DecodeError>
Normalizes, orders and collapses equal elements without a JSON comparator.
Sourcepub fn codec(&self) -> &ContextCodec
pub fn codec(&self) -> &ContextCodec
The owned element codec.
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = &Json>
pub fn iter(&self) -> impl ExactSizeIterator<Item = &Json>
Elements in Flow order.
Sourcepub fn canonical_json(&self) -> Json
pub fn canonical_json(&self) -> Json
Canonical array, revalidated at the output root by generated code.
Trait Implementations§
Source§impl Clone for ContextSet
impl Clone for ContextSet
Auto Trait Implementations§
impl Freeze for ContextSet
impl RefUnwindSafe for ContextSet
impl Send for ContextSet
impl Sync for ContextSet
impl Unpin for ContextSet
impl UnsafeUnpin for ContextSet
impl UnwindSafe for ContextSet
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