pub struct Array<T>(pub Option<Vec<T>>);Expand description
Represents a sequence of objects of a given type T.
Type T can be either a primitive type (e.g. STRING) or a structure. First, the length N is given as an INT32. Then
N instances of type T follow. A null array is represented with a length of -1. In protocol documentation an array
of T instances is referred to as [T].
Tuple Fields§
§0: Option<Vec<T>>Trait Implementations§
Source§impl<T: Ord> Ord for Array<T>
impl<T: Ord> Ord for Array<T>
Source§impl<T: PartialOrd> PartialOrd for Array<T>
impl<T: PartialOrd> PartialOrd for Array<T>
impl<T: Eq> Eq for Array<T>
impl<T> StructuralPartialEq for Array<T>
Auto Trait Implementations§
impl<T> Freeze for Array<T>
impl<T> RefUnwindSafe for Array<T>where
T: RefUnwindSafe,
impl<T> Send for Array<T>where
T: Send,
impl<T> Sync for Array<T>where
T: Sync,
impl<T> Unpin for Array<T>where
T: Unpin,
impl<T> UnwindSafe for Array<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