[−][src]Struct rawbson::ArrayRef
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]
self,
index: usize
) -> RawResult<Option<(&'a str, DocRef<'a>)>>
pub fn get_i32(self, index: usize) -> RawResult<Option<i32>>[src]
pub fn get_timestamp(
self,
index: usize
) -> RawResult<Option<RawBsonTimestamp<'a>>>[src]
self,
index: usize
) -> RawResult<Option<RawBsonTimestamp<'a>>>
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]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
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.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,