pub struct ByteSlice {
pub byte_end: usize,
pub byte_start: usize,
}
Expand description
Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.
Fields§
§byte_end: usize
§byte_start: usize
Trait Implementations§
source§impl<'de> Deserialize<'de> for ByteSlice
impl<'de> Deserialize<'de> for ByteSlice
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ByteSlice
impl PartialEq for ByteSlice
impl Eq for ByteSlice
impl StructuralPartialEq for ByteSlice
Auto Trait Implementations§
impl RefUnwindSafe for ByteSlice
impl Send for ByteSlice
impl Sync for ByteSlice
impl Unpin for ByteSlice
impl UnwindSafe for ByteSlice
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