pub struct Array<T: DataType>(pub PhantomData<T>);Expand description
SQL array type marker: Array<T> is an array whose elements have SQL type T.
Used for PostgreSQL array columns, such as Array<Text> for text[].
Array<T> is Compatible and Assignable only with the same
Array<T>.
Tuple Fields§
§0: PhantomData<T>Trait Implementations§
impl<T: DataType> Assignable for Array<T>
impl<T: DataType> Compatible for Array<T>
impl<T: Copy + DataType> Copy for Array<T>
impl<T: DataType> DataType for Array<T>
impl<T: Eq + DataType> Eq for Array<T>
impl<T: PartialEq + DataType> StructuralPartialEq for Array<T>
Auto Trait Implementations§
impl<T> Freeze for Array<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for Array<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for Array<T>where
PhantomData<T>: Send,
impl<T> Sync for Array<T>where
PhantomData<T>: Sync,
impl<T> Unpin for Array<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for Array<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for Array<T>where
PhantomData<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