Skip to main content

UnicodeStringStorage

Struct UnicodeStringStorage 

Source
pub struct UnicodeStringStorage<'a> { /* private fields */ }
Expand description

Link-backed Unicode string storage with C# pinned type layout.

Implementations§

Source§

impl<'a> UnicodeStringStorage<'a>

Source

pub fn new(links: &'a mut LinkStorage) -> Result<Self>

Source

pub fn type_type(&self) -> u32

Source

pub fn unicode_symbol_type(&self) -> u32

Source

pub fn unicode_sequence_type(&self) -> u32

Source

pub fn string_type(&self) -> u32

Source

pub fn empty_string_type(&self) -> u32

Source

pub fn name_type(&self) -> u32

Source

pub fn address_to_number_converter(&self) -> AddressToRawNumberConverter

Source

pub fn number_to_address_converter(&self) -> RawNumberToAddressConverter

Source

pub fn balanced_variant_converter(&self) -> BalancedVariantConverter

Source

pub fn unicode_symbol_criterion_matcher(&self) -> TargetMatcher

Source

pub fn unicode_sequence_criterion_matcher(&self) -> TargetMatcher

Source

pub fn char_to_unicode_symbol_converter(&self) -> CharToUnicodeSymbolConverter

Source

pub fn unicode_symbol_to_char_converter(&self) -> UnicodeSymbolToCharConverter

Source

pub fn string_to_unicode_sequence_converter( &self, ) -> StringToUnicodeSequenceConverter

Source

pub fn sequence_walker(&self) -> RightSequenceWalker

Source

pub fn unicode_sequence_to_string_converter( &self, ) -> UnicodeSequenceToStringConverter

Source

pub fn create_string(&mut self, content: &str) -> Result<u32>

Source

pub fn get_string(&self, string_value: u32) -> Result<String>

Source

pub fn unicode_sequence_code_units(&self, string_value: u32) -> Result<Vec<u16>>

Source

pub fn get_types(&self) -> Vec<u32>

Source

pub fn is_type(&self, address: u32) -> bool

Source

pub fn get_or_create_type(&mut self, name: &str) -> Result<u32>

Source

pub fn set_name_for_external_reference( &mut self, link: u32, name: &str, ) -> Result<u32>

Source

pub fn get_name_by_external_reference( &self, link: u32, ) -> Result<Option<String>>

Source

pub fn get_external_reference_by_name( &mut self, name: &str, ) -> Result<Option<u32>>

Source

pub fn remove_name_by_external_reference( &mut self, external_reference_id: u32, ) -> Result<()>

Source

pub fn set_name(&mut self, link: u32, name: &str) -> Result<u32>

Source

pub fn get_name(&self, link: u32) -> Result<Option<String>>

Source

pub fn get_by_name(&mut self, name: &str) -> Result<Option<u32>>

Source

pub fn remove_name(&mut self, link: u32) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.