pub struct Subject<'a> { /* private fields */ }
Expand description
The Subject
from the crate::CommitMessage
Implementations§
Trait Implementations§
Source§impl From<String> for Subject<'_>
impl From<String> for Subject<'_>
Source§fn from(subject: String) -> Self
fn from(subject: String) -> Self
Convert from an owned string
§Examples
use mit_commit::Subject;
let subject = Subject::from("y\u{306}".to_string());
let mut chars = subject.chars();
assert_eq!(Some('y'), chars.next());
assert_eq!(Some('\u{0306}'), chars.next());
assert_eq!(None, chars.next());
impl<'a> Eq for Subject<'a>
impl<'a> StructuralPartialEq for Subject<'a>
Auto Trait Implementations§
impl<'a> Freeze for Subject<'a>
impl<'a> RefUnwindSafe for Subject<'a>
impl<'a> Send for Subject<'a>
impl<'a> Sync for Subject<'a>
impl<'a> Unpin for Subject<'a>
impl<'a> UnwindSafe for Subject<'a>
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