pub struct SurrogateMarker { /* private fields */ }Expand description
One surrogate-code-unit substitution in a SourceText carrier.
Invariants maintained by SourceText construction:
- entries are sorted by unique carrier/raw byte offset;
- every offset is a UTF-8 character boundary and points at the carrier
scalar
U+E000 + (unit - 0xD800); unitis one UTF-16 surrogate decoded from a three-byte WTF-8/CESU-8 sequence;- both the original encoding and carrier occupy exactly three bytes.
Implementations§
Trait Implementations§
Source§impl Clone for SurrogateMarker
impl Clone for SurrogateMarker
impl Copy for SurrogateMarker
Source§impl Debug for SurrogateMarker
impl Debug for SurrogateMarker
impl Eq for SurrogateMarker
Source§impl Hash for SurrogateMarker
impl Hash for SurrogateMarker
Source§impl PartialEq for SurrogateMarker
impl PartialEq for SurrogateMarker
impl StructuralPartialEq for SurrogateMarker
Auto Trait Implementations§
impl Freeze for SurrogateMarker
impl RefUnwindSafe for SurrogateMarker
impl Send for SurrogateMarker
impl Sync for SurrogateMarker
impl Unpin for SurrogateMarker
impl UnsafeUnpin for SurrogateMarker
impl UnwindSafe for SurrogateMarker
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