[][src]Struct rawbson::ArrayRef

pub struct ArrayRef<'a> { /* fields omitted */ }

Implementations

impl<'a> ArrayRef<'a>[src]

pub fn new(data: &'a [u8]) -> RawResult<ArrayRef<'a>>[src]

pub fn from_doc(doc: DocRef<'a>) -> ArrayRef<'a>[src]

pub fn get(self, index: usize) -> RawResult<Option<Element<'a>>>[src]

pub fn get_f64(self, index: usize) -> RawResult<Option<f64>>[src]

pub fn get_str(self, index: usize) -> RawResult<Option<&'a str>>[src]

pub fn get_document(self, index: usize) -> RawResult<Option<DocRef<'a>>>[src]

pub fn get_array(self, index: usize) -> RawResult<Option<ArrayRef<'a>>>[src]

pub fn get_binary(self, index: usize) -> RawResult<Option<RawBsonBinary<'a>>>[src]

pub fn get_object_id(self, index: usize) -> RawResult<Option<ObjectId>>[src]

pub fn get_bool(self, index: usize) -> RawResult<Option<bool>>[src]

pub fn get_datetime(self, index: usize) -> RawResult<Option<DateTime<Utc>>>[src]

pub fn get_null(self, index: usize) -> RawResult<Option<()>>[src]

pub fn get_regex(self, index: usize) -> RawResult<Option<RawBsonRegex<'a>>>[src]

pub fn get_javascript(self, index: usize) -> RawResult<Option<&'a str>>[src]

pub fn get_symbol(self, index: usize) -> RawResult<Option<&'a str>>[src]

pub fn get_javascript_with_scope(
    self,
    index: usize
) -> RawResult<Option<(&'a str, DocRef<'a>)>>
[src]

pub fn get_i32(self, index: usize) -> RawResult<Option<i32>>[src]

pub fn get_timestamp(
    self,
    index: usize
) -> RawResult<Option<RawBsonTimestamp<'a>>>
[src]

pub fn get_i64(self, index: usize) -> RawResult<Option<i64>>[src]

pub fn to_vec(self) -> RawResult<Vec<Element<'a>>>[src]

pub fn as_bytes(self) -> &'a [u8][src]

Trait Implementations

impl<'a> Clone for ArrayRef<'a>[src]

impl<'a> Copy for ArrayRef<'a>[src]

impl<'a> IntoIterator for ArrayRef<'a>[src]

type IntoIter = ArrayIter<'a>

Which kind of iterator are we turning this into?

type Item = RawResult<Element<'a>>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for ArrayRef<'a>[src]

impl<'a> Send for ArrayRef<'a>[src]

impl<'a> Sync for ArrayRef<'a>[src]

impl<'a> Unpin for ArrayRef<'a>[src]

impl<'a> UnwindSafe for ArrayRef<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,