pub struct TextInput<'a> {
pub text: &'a [u8],
pub provenance: Option<&'a Provenance>,
}Expand description
Borrowed text plus optional owned output provenance.
Fields§
§text: &'a [u8]§provenance: Option<&'a Provenance>Implementations§
Source§impl<'a> TextInput<'a>
impl<'a> TextInput<'a>
pub const fn new(text: &'a [u8]) -> Self
pub const fn with_provenance(self, provenance: &'a Provenance) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TextInput<'a>
impl<'a> RefUnwindSafe for TextInput<'a>
impl<'a> Send for TextInput<'a>
impl<'a> Sync for TextInput<'a>
impl<'a> Unpin for TextInput<'a>
impl<'a> UnsafeUnpin for TextInput<'a>
impl<'a> UnwindSafe for TextInput<'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