pub struct IdentityOffsetMapping;Expand description
Identity offset mapping: original and transformed offsets are the same.
Trait Implementations§
Source§impl Clone for IdentityOffsetMapping
impl Clone for IdentityOffsetMapping
Source§fn clone(&self) -> IdentityOffsetMapping
fn clone(&self) -> IdentityOffsetMapping
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 IdentityOffsetMapping
Source§impl Debug for IdentityOffsetMapping
impl Debug for IdentityOffsetMapping
Source§impl OffsetMapping for IdentityOffsetMapping
impl OffsetMapping for IdentityOffsetMapping
fn original_to_transformed(&self, offset: usize) -> usize
fn transformed_to_original(&self, offset: usize) -> usize
fn clone_box(&self) -> Box<dyn OffsetMapping>
Auto Trait Implementations§
impl Freeze for IdentityOffsetMapping
impl RefUnwindSafe for IdentityOffsetMapping
impl Send for IdentityOffsetMapping
impl Sync for IdentityOffsetMapping
impl Unpin for IdentityOffsetMapping
impl UnsafeUnpin for IdentityOffsetMapping
impl UnwindSafe for IdentityOffsetMapping
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