Struct gstreamer::Iterator[][src]

pub struct Iterator<T> { /* fields omitted */ }

Implementations

impl<T> Iterator<T> where
    T: FromValue<'a> + 'static, 
[src]

pub unsafe fn into_ptr(self) -> *mut GstIterator[src]

pub fn next(&mut self) -> Result<Option<T>, IteratorError>[src]

pub fn resync(&mut self)[src]

pub fn filter<F>(self, func: F) -> Self where
    F: Fn(T) -> bool + Send + Sync + 'static,
    T: StaticType
[src]

pub fn find<F>(&mut self, func: F) -> Option<T> where
    F: FnMut(T) -> bool
[src]

pub fn foreach<F>(&mut self, func: F) -> Result<(), IteratorError> where
    F: FnMut(T), 
[src]

pub fn fold<F, U>(&mut self, init: U, func: F) -> Result<U, IteratorError> where
    F: FnMut(U, T) -> Result<U, U>, 
[src]

impl<T> Iterator<T> where
    T: FromValue<'a> + StaticType + ToValue + Send + 'static, 
[src]

pub fn new<I: IteratorImpl<T>>(imp: I) -> Self[src]

impl<T> Iterator<T> where
    T: FromValue<'a> + StaticType + ToValue + Clone + Send + 'static, 
[src]

pub fn from_vec(items: Vec<T>) -> Self[src]

Trait Implementations

impl<T: StaticType + 'static> Clone for Iterator<T>[src]

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T> Debug for Iterator<T>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<T> Drop for Iterator<T>[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

impl<'a, T: StaticType + 'static> FromValue<'a> for Iterator<T>[src]

type Checker = GenericValueTypeOrNoneChecker<Self>

Value type checker.

unsafe fn from_value(value: &'a Value) -> Self[src]

Get the contained value from a Value. Read more

impl<T> IntoIterator for Iterator<T> where
    T: FromValue<'a> + 'static, 
[src]

type Item = Result<T, IteratorError>

The type of the elements being iterated over.

type IntoIter = StdIterator<T>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl<T> StaticType for Iterator<T>[src]

fn static_type() -> Type[src]

Returns the type identifier of Self.

impl<T: StaticType + 'static> ToValue for Iterator<T>[src]

fn to_value(&self) -> Value[src]

Convert a value to a Value.

fn value_type(&self) -> Type[src]

Returns the type identifer of self. Read more

impl<T: StaticType + 'static> ToValueOptional for Iterator<T>[src]

fn to_value_optional(s: Option<&Self>) -> Value[src]

Convert an Option to a Value.

impl<T: StaticType + 'static> ValueType for Iterator<T>[src]

type Type = Self

Type to get the Type from. Read more

impl<T> Send for Iterator<T>[src]

impl<T> Sync for Iterator<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Iterator<T> where
    T: RefUnwindSafe

impl<T> Unpin for Iterator<T> where
    T: Unpin

impl<T> UnwindSafe for Iterator<T> where
    T: UnwindSafe

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> ToSendValue for T where
    T: Send + ToValue + ?Sized
[src]

pub fn to_send_value(&self) -> SendValue[src]

Returns a SendValue clone of self.

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.

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

Performs the conversion.

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.

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

Performs the conversion.

impl<'a, T, C> FromValueOptional<'a> for T where
    C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
    T: FromValue<'a, Checker = C>, 
[src]