Struct gmime::PartIter[]

pub struct PartIter(_);

A MIME part iterator.

Methods

impl PartIter
[src]

Creates a new PartIter for iterating over toplevel's subparts.

toplevel

a Object to use as the toplevel

Returns

a newly allocated PartIter which should be freed using PartIter::free when finished with it.

Clones the self, including its current state.

Returns

a new PartIter that is identical to self.

Gets the Object at the current PartIter position.

Returns

the current Object or None if the state of self is invalid.

Gets the parent of the Object at the current PartIter position.

Returns

the parent Object or None if the state of self is invalid.

Gets the path of the current Object in the MIME structure used to initialize self.

Returns

a newly allocated string representation of the path to the Object at the current PartIter position.

Gets the toplevel Object used to initialize self.

Returns

the toplevel Object.

Checks that the current state of self is valid.

Returns

true if self is valid or false otherwise.

Updates the state of self to point to the Object specified by path.

path

a string representing the path to jump to

Returns

true if the Object specified by path exists or false otherwise.

Advances to the next part in the MIME structure used to initialize self.

Returns

true if successful or false otherwise.

Rewinds to the previous part in the MIME structure used to initialize self.

Returns

true if successful or false otherwise.

Removes the Object at the current position from its parent. If successful, self is advanced to the next position (since the current position will become invalid).

Returns

true if the part at the current position was removed or false otherwise.

Replaces the Object at the current position with replacement.

replacement

a Object

Returns

true if the part at the current position was replaced or false otherwise.

Resets the state of self to its initial state.

Trait Implementations

impl Clone for PartIter

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PartIter

Formats the value using the given formatter. Read more

impl StaticType for PartIter

Returns the type identifier of Self.

Auto Trait Implementations

impl !Send for PartIter

impl !Sync for PartIter