pub struct PsbRefs { /* private fields */ }
Implementations§
Source§impl PsbRefs
impl PsbRefs
pub fn new(names: Vec<String>, strings: Vec<String>) -> Self
pub fn names(&self) -> &Vec<String>
pub fn names_mut(&mut self) -> &mut Vec<String>
pub fn names_len(&self) -> usize
pub fn get_name(&self, index: usize) -> Option<&String>
pub fn get_name_mut(&mut self, index: usize) -> Option<&mut String>
pub fn find_name_index(&self, name: &String) -> Option<u64>
pub fn strings(&self) -> &Vec<String>
pub fn strings_mut(&mut self) -> &mut Vec<String>
pub fn strings_len(&self) -> usize
pub fn get_string(&self, index: usize) -> Option<&String>
pub fn get_string_mut(&mut self, index: usize) -> Option<&mut String>
pub fn find_string_index(&self, string: &String) -> Option<u64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PsbRefs
impl RefUnwindSafe for PsbRefs
impl Send for PsbRefs
impl Sync for PsbRefs
impl Unpin for PsbRefs
impl UnwindSafe for PsbRefs
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<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