[−][src]Struct graphannis::update::GraphUpdate
A list of changes to apply to an graph.
Implementations
impl GraphUpdate
[src]
pub fn new() -> GraphUpdate
[src]
Create a new empty list of updates.
pub fn add_event(&mut self, event: UpdateEvent) -> Result<(), Error>
[src]
Add the given event to the update list.
pub fn iter(&'a self) -> Result<GraphUpdateIterator<'a>, Error>
[src]
Get all changes
pub fn is_empty(&self) -> Result<bool, Error>
[src]
Returns true
if the update list is empty.
Trait Implementations
impl Default for GraphUpdate
[src]
fn default() -> GraphUpdate
[src]
impl<'de> Deserialize<'de> for GraphUpdate
[src]
fn deserialize<D>(
deserializer: D
) -> Result<GraphUpdate, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<GraphUpdate, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Serialize for GraphUpdate
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Auto Trait Implementations
impl !RefUnwindSafe for GraphUpdate
impl Send for GraphUpdate
impl Sync for GraphUpdate
impl Unpin for GraphUpdate
impl !UnwindSafe for GraphUpdate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,