pub struct IgniteList<T>(pub Vec<T>);Expand description
A Java Collection (List/Set), distinct from the Ignite primitive
array types. Java’s AllTypes has both int[] (→ Vec<i32> /
IntArray) and List<Integer> (→ IgniteList<i32> / Collection) —
both would be Vec<i32> in Rust without this newtype, making the mapping
ambiguous.
FieldWrite/FieldRead are implemented concretely for IgniteList<i32>
rather than generically over T: FieldWrite/FieldRead, to avoid the
complexity of a generic-over-element-trait impl for v1; extend with more
concrete element types (or generalise) as the gate requires them.
Tuple Fields§
§0: Vec<T>Trait Implementations§
Source§impl<T: Clone> Clone for IgniteList<T>
impl<T: Clone> Clone for IgniteList<T>
Source§fn clone(&self) -> IgniteList<T>
fn clone(&self) -> IgniteList<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for IgniteList<T>
impl<T: Debug> Debug for IgniteList<T>
Source§impl FieldRead for IgniteList<i32>
impl FieldRead for IgniteList<i32>
fn read_field(r: &BinaryObjectReader, name: &str) -> Result<Self>
Source§impl FieldWrite for IgniteList<i32>
impl FieldWrite for IgniteList<i32>
Source§fn write_field(&self, b: BinaryObjectBuilder, name: &str) -> BinaryObjectBuilder
fn write_field(&self, b: BinaryObjectBuilder, name: &str) -> BinaryObjectBuilder
Write
self as field name, returning the builder for chaining.Source§fn field_type_code() -> i32
fn field_type_code() -> i32
The Ignite wire type code for this field’s value.
Source§impl<T: PartialEq> PartialEq for IgniteList<T>
impl<T: PartialEq> PartialEq for IgniteList<T>
impl<T: PartialEq> StructuralPartialEq for IgniteList<T>
Auto Trait Implementations§
impl<T> Freeze for IgniteList<T>
impl<T> RefUnwindSafe for IgniteList<T>where
T: RefUnwindSafe,
impl<T> Send for IgniteList<T>where
T: Send,
impl<T> Sync for IgniteList<T>where
T: Sync,
impl<T> Unpin for IgniteList<T>where
T: Unpin,
impl<T> UnsafeUnpin for IgniteList<T>
impl<T> UnwindSafe for IgniteList<T>where
T: UnwindSafe,
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