pub struct ByteSliceData {
pub byte_end: usize,
pub byte_start: usize,
}
Available on crate feature
namespace-appbsky
only.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 Clone for ByteSliceData
impl Clone for ByteSliceData
Source§fn clone(&self) -> ByteSliceData
fn clone(&self) -> ByteSliceData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ByteSliceData
impl Debug for ByteSliceData
Source§impl<'de> Deserialize<'de> for ByteSliceData
impl<'de> Deserialize<'de> for ByteSliceData
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 ByteSliceData
impl PartialEq for ByteSliceData
Source§impl Serialize for ByteSliceData
impl Serialize for ByteSliceData
impl Eq for ByteSliceData
impl StructuralPartialEq for ByteSliceData
Auto Trait Implementations§
impl Freeze for ByteSliceData
impl RefUnwindSafe for ByteSliceData
impl Send for ByteSliceData
impl Sync for ByteSliceData
impl Unpin for ByteSliceData
impl UnwindSafe for ByteSliceData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.