pub struct Example {
pub sentence_1: String,
pub sentence_2: String,
pub label: Label,
}Fields§
§sentence_1: String§sentence_2: String§label: LabelImplementations§
Source§impl Example
impl Example
pub fn new_from_string(sentence: &str) -> Self
pub fn new_from_strings(sentence_1: &str, sentence_2: &str) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Example
impl RefUnwindSafe for Example
impl Send for Example
impl Sync for Example
impl Unpin for Example
impl UnsafeUnpin for Example
impl UnwindSafe for Example
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