[−][src]Struct mit_commit::Comments
A collection of comments from a CommitMessage
Implementations
impl Comments
[src]
#[must_use]pub fn iter(&self) -> Iter<'_, Comment>
[src]
Iterate over the Comment
in the Comments
Examples
use mit_commit::Comment; use mit_commit::Comments; let trailers = Comments::from(vec![ Comment::from("# Comment 1"), Comment::from("# Comment 2"), Comment::from("# Comment 3"), ]); let mut iterator = trailers.iter(); assert_eq!(iterator.next(), Some(&Comment::from("# Comment 1"))); assert_eq!(iterator.next(), Some(&Comment::from("# Comment 2"))); assert_eq!(iterator.next(), Some(&Comment::from("# Comment 3"))); assert_eq!(iterator.next(), None);
Trait Implementations
impl Clone for Comments
[src]
impl Debug for Comments
[src]
impl From<Comments> for String
[src]
impl From<Vec<Comment>> for Comments
[src]
impl From<Vec<Fragment>> for Comments
[src]
impl PartialEq<Comments> for Comments
[src]
impl StructuralPartialEq for Comments
[src]
Auto Trait Implementations
impl RefUnwindSafe for Comments
impl Send for Comments
impl Sync for Comments
impl Unpin for Comments
impl UnwindSafe for Comments
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,