Struct gstreamer::Iterator

source ·
pub struct Iterator<T> { /* private fields */ }

Implementations§

source§

impl<T> Iterator<T>
where for<'a> T: FromValue<'a> + 'static,

source

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

source

pub fn resync(&mut self)

source

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

source

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

source

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

source

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

source§

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

source

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

source§

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

source

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

Trait Implementations§

source§

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

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for Iterator<T>

source§

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

Formats the value using the given formatter. Read more
source§

impl<T> Drop for Iterator<T>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<T: StaticType + 'static> From<Iterator<T>> for Value

source§

fn from(v: Iterator<T>) -> Value

Converts to this type from the input type.
source§

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

§

type Checker = GenericValueTypeOrNoneChecker<Iterator<T>>

Value type checker.
source§

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

Get the contained value from a Value. Read more
source§

impl<T: 'static> IntoGlibPtr<*mut GstIterator> for Iterator<T>

source§

unsafe fn into_glib_ptr(self) -> *mut GstIterator

Transfer: full.
source§

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

§

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?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T> StaticType for Iterator<T>

source§

fn static_type() -> Type

Returns the type identifier of Self.
source§

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

source§

fn to_value(&self) -> Value

Convert a value to a Value.
source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
source§

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

source§

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

Convert an Option to a Value.
source§

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

§

type Type = Iterator<T>

Type to get the Type from. Read more
source§

impl<T> Send for Iterator<T>

source§

impl<T> Sync for Iterator<T>

source§

impl<T: StaticType + 'static> ValueTypeOptional for Iterator<T>

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§

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> IntoClosureReturnValue for T
where T: Into<Value>,

source§

impl<T> StaticTypeExt for T
where T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToSendValue for T
where T: Send + ToValue + ?Sized,

source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
source§

impl<T> TransparentType for T

source§

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

§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

source§

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

§

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.
source§

impl<'a, T, C, E> FromValueOptional<'a> for T
where T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static,