pub struct Description { /* private fields */ }Expand description
The description part of the binary dictionary
Implementations§
Source§impl Description
impl Description
pub fn load(buf: &[u8]) -> SudachiResult<Self>
pub fn creation_time(&self) -> Duration
pub fn comment(&self) -> &str
pub fn signature(&self) -> &str
pub fn reference(&self) -> &str
pub fn is_system_dictionary(&self) -> bool
pub fn is_user_dictionary(&self) -> bool
pub fn blocks(&self) -> &[BlockInfo]
pub fn slice_or_none<'a>( &self, buf: &'a [u8], block: Block, ) -> SudachiResult<Option<&'a [u8]>>
pub fn slice<'a>(&self, buf: &'a [u8], block: Block) -> SudachiResult<&'a [u8]>
pub fn is_runtime_costs(&self) -> bool
pub fn num_total_entries(&self) -> u32
pub fn num_indexed_entries(&self) -> u32
Trait Implementations§
Source§impl Clone for Description
impl Clone for Description
Source§fn clone(&self) -> Description
fn clone(&self) -> Description
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 moreSource§impl Debug for Description
impl Debug for Description
impl Eq for Description
Source§impl PartialEq for Description
impl PartialEq for Description
Source§fn eq(&self, other: &Description) -> bool
fn eq(&self, other: &Description) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Description
Auto Trait Implementations§
impl Freeze for Description
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnsafeUnpin for Description
impl UnwindSafe for Description
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more