[−][src]Struct arcon::data::ArconVec
ArconVec
is essentially the same as a WeldVec
,
however, it is reintroduced here to add extra features
and to easier integrate with serialisation/deserialisation
Fields
ptr: *const A
len: i64
Methods
impl<A: ArconType> ArconVec<A>
[src]
pub fn new(vec: Vec<A>) -> Self
[src]
Create a new ArconVec
use arcon::data::ArconVec; let mut vec = vec![1,2,3,4,5]; let arcon_vec = ArconVec::new(vec); assert_eq!(arcon_vec.len, 5);
pub fn to_vec(&self) -> Vec<A>
[src]
Turns ArconVec
into a normal Rust Vec
use arcon::data::ArconVec; let mut vec = vec![1,2,3,4,5]; let arcon_vec = ArconVec::new(vec.clone()); let rust_vec = arcon_vec.to_vec(); assert_eq!(vec, rust_vec);
Trait Implementations
impl<A: ArconType> ArconType for ArconVec<A>
[src]
impl<A: ArconType> Send for ArconVec<A>
[src]
impl<A: ArconType> Sync for ArconVec<A>
[src]
impl<A: ArconType> Clone for ArconVec<A>
[src]
fn clone(&self) -> ArconVec<A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<A: Copy + ArconType> Copy for ArconVec<A>
[src]
impl<A: ArconType> Deref for ArconVec<A>
[src]
Access ArconVec
as slice
use arcon::data::ArconVec; let mut vec = vec![1,2,3,4,5]; let arcon_vec = ArconVec::new(vec); assert_eq!(arcon_vec[0], 1);
impl<A: ArconType> Display for ArconVec<A>
[src]
impl<A: ArconType> Debug for ArconVec<A>
[src]
impl<A: ArconType> Serialize for ArconVec<A> where
A: Serialize,
[src]
A: Serialize,
impl<'de, A> Deserialize<'de> for ArconVec<A> where
A: ArconType,
[src]
A: ArconType,
Implements the Deserialize
trait for ArconVec
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl<A> Unpin for ArconVec<A>
impl<A> UnwindSafe for ArconVec<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> RefUnwindSafe for ArconVec<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Deserialisable<T> for T
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,