Struct RowSet

Source
pub struct RowSet { /* private fields */ }
Expand description

Container for a sys::SRowSet structure, such as the rows returned from sys::IMAPITable::QueryRows.

The *mut sys::SRowSet should be freed with a call to sys::FreeProws in the destructor, but sys::SRowSet allows embedded sys::SPropValue pointers to be peeled off and freed separately, as long as the pointer in the sys::SRowSet is replaced with null. The sys::FreeProws function will free any non-null property pointers in the sys::SRowSet, but silently skip the ones that are null.

Implementations§

Source§

impl RowSet

Source

pub fn as_mut_ptr(&mut self) -> *mut *mut SRowSet

Get an out-param pointer for the sys::SRowSet pointer.

Source

pub fn is_empty(&self) -> bool

Test for a null sys::SRowSet pointer or a pointer to 0 rows.

Source

pub fn len(&self) -> usize

Get the count of rows contained in the sys::SRowSet.

Trait Implementations§

Source§

impl Default for RowSet

Source§

fn default() -> Self

The initial state for RowSet should have a null *mut sys::SRowSet pointer. An allocation should be added to it later using the RowSet::as_mut_ptr method to fill in an out-param from one of the sys functions or interface methods which retrieve a sys::SRowSet structure.

Source§

impl Drop for RowSet

Source§

fn drop(&mut self)

Call sys::FreeProws to free the *mut sys::SRowSet. This will also free any sys::SPropValue pointers that have not been transfered to an instance of Row.

Source§

impl IntoIterator for RowSet

Source§

fn into_iter(self) -> Self::IntoIter

Transfer ownership of the embedded sys::SPropValue pointers to an Iterator of Row.

Source§

type Item = Row

The type of the elements being iterated over.
Source§

type IntoIter = <Vec<<RowSet as IntoIterator>::Item> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

Auto Trait Implementations§

§

impl Freeze for RowSet

§

impl RefUnwindSafe for RowSet

§

impl !Send for RowSet

§

impl !Sync for RowSet

§

impl Unpin for RowSet

§

impl UnwindSafe for RowSet

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.