pub struct AttributeOrigin {
pub start: usize,
pub end: usize,
}Expand description
The absolute half-open byte range occupied by one annotation structure.
Fields§
§start: usizeAbsolute offset of the structure’s first byte.
end: usizeAbsolute offset immediately after the structure’s last byte.
Trait Implementations§
Source§impl Clone for AttributeOrigin
impl Clone for AttributeOrigin
Source§fn clone(&self) -> AttributeOrigin
fn clone(&self) -> AttributeOrigin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AttributeOrigin
Source§impl Debug for AttributeOrigin
impl Debug for AttributeOrigin
impl Eq for AttributeOrigin
Source§impl PartialEq for AttributeOrigin
impl PartialEq for AttributeOrigin
impl StructuralPartialEq for AttributeOrigin
Auto Trait Implementations§
impl Freeze for AttributeOrigin
impl RefUnwindSafe for AttributeOrigin
impl Send for AttributeOrigin
impl Sync for AttributeOrigin
impl Unpin for AttributeOrigin
impl UnsafeUnpin for AttributeOrigin
impl UnwindSafe for AttributeOrigin
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