pub struct Iterator<T> { /* private fields */ }
Implementations§
source§impl<T> Iterator<T>where
for<'a> T: FromValue<'a> + 'static,
impl<T> Iterator<T>where
for<'a> T: FromValue<'a> + 'static,
pub fn next(&mut self) -> Result<Option<T>, IteratorError>
pub fn resync(&mut self)
pub fn filter<F>(self, func: F) -> Self
pub fn find<F>(&mut self, func: F) -> Option<T>
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>
Trait Implementations§
source§impl<T: StaticType + 'static> Clone for Iterator<T>
impl<T: StaticType + 'static> Clone for Iterator<T>
source§impl<'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.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl<T: 'static> IntoGlibPtr<*mut GstIterator> for Iterator<T>
impl<T: 'static> IntoGlibPtr<*mut GstIterator> for Iterator<T>
source§unsafe fn into_glib_ptr(self) -> *mut GstIterator
unsafe fn into_glib_ptr(self) -> *mut GstIterator
Transfer: full.
source§impl<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,
source§impl<T> StaticType for Iterator<T>
impl<T> StaticType for Iterator<T>
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<T: StaticType + 'static> ToValue for Iterator<T>
impl<T: StaticType + 'static> ToValue for Iterator<T>
source§impl<T: StaticType + 'static> ToValueOptional for Iterator<T>
impl<T: StaticType + 'static> ToValueOptional for Iterator<T>
source§impl<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> Freeze for Iterator<T>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.