mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
doc: Add examples for runtime defined data and Schema
This commit is contained in:
@ -63,10 +63,12 @@ impl Attribute {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn attribute(&self) -> u16 {
|
||||
(self.0 >> 22) as u16
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn word_index(&self) -> u32 {
|
||||
self.0 & 0b0000_0000_0011_1111_1111_1111_1111
|
||||
}
|
||||
@ -129,10 +131,12 @@ impl WordArea {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn byte_index(&self) -> u32 {
|
||||
self.0 >> 10
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn length(&self) -> u16 {
|
||||
(self.0 & 0b0000_0000_0000_0000_0011_1111_1111) as u16
|
||||
}
|
||||
|
Reference in New Issue
Block a user