pub struct Iterator<T> { /* private fields */ }
Implementations
sourceimpl<T> Iterator<T> where
for<'a> T: FromValue<'a> + 'static,
impl<T> Iterator<T> where
for<'a> T: FromValue<'a> + 'static,
pub unsafe fn into_ptr(self) -> *mut GstIterator
pub fn next(&mut self) -> Result<Option<T>, IteratorError>
pub fn resync(&mut self)
pub fn filter<F>(self, func: F) -> Self where
F: Fn(T) -> bool + Send + Sync + 'static,
T: StaticType,
pub fn find<F>(&mut self, func: F) -> Option<T> where
F: FnMut(T) -> bool,
pub fn foreach<F>(&mut self, func: F) -> Result<(), IteratorError> where
F: FnMut(T),
pub fn fold<F, U>(&mut self, init: U, func: F) -> Result<U, IteratorError> where
F: FnMut(U, T) -> Result<U, U>,
sourceimpl<T> Iterator<T> where
for<'a> T: FromValue<'a> + StaticType + ToValue + Send + 'static,
impl<T> Iterator<T> where
for<'a> T: FromValue<'a> + StaticType + ToValue + Send + 'static,
pub fn new<I: IteratorImpl<T>>(imp: I) -> Self
Trait Implementations
sourceimpl<T: StaticType + 'static> Clone for Iterator<T>
impl<T: StaticType + 'static> Clone for Iterator<T>
sourceimpl<'a, T: StaticType + 'static> FromValue<'a> for Iterator<T>
impl<'a, T: StaticType + 'static> FromValue<'a> for Iterator<T>
type Checker = GenericValueTypeOrNoneChecker<Iterator<T>>
type Checker = GenericValueTypeOrNoneChecker<Iterator<T>>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl<T> IntoIterator for Iterator<T> where
for<'a> T: FromValue<'a> + 'static,
impl<T> IntoIterator for Iterator<T> where
for<'a> T: FromValue<'a> + 'static,
type Item = Result<T, IteratorError>
type Item = Result<T, IteratorError>
The type of the elements being iterated over.
type IntoIter = StdIterator<T>
type IntoIter = StdIterator<T>
Which kind of iterator are we turning this into?
sourceimpl<T> StaticType for Iterator<T>
impl<T> StaticType for Iterator<T>
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl<T: StaticType + 'static> ToValue for Iterator<T>
impl<T: StaticType + 'static> ToValue for Iterator<T>
sourceimpl<T: StaticType + 'static> ToValueOptional for Iterator<T>
impl<T: StaticType + 'static> ToValueOptional for Iterator<T>
sourcefn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an Option
to a Value
.
sourceimpl<T: StaticType + 'static> ValueType for Iterator<T>
impl<T: StaticType + 'static> ValueType for Iterator<T>
impl<T> Send for Iterator<T>
impl<T> Sync for Iterator<T>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.