pub struct Target { /* private fields */ }Implementations§
Source§impl Target
impl Target
pub fn is_valid(bytes: &[u8]) -> bool
pub const fn from_span(form: Form, span: Span) -> Result<Self, Error>
pub const fn form(self) -> Form
pub const fn start(self) -> usize
pub const fn len(self) -> usize
pub const fn is_empty(self) -> bool
pub const fn end(self) -> usize
pub fn get(self, input: &[u8]) -> Option<&[u8]>
Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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