Struct visa_rs::VisaString
source · [−]pub struct VisaString(_);Expand description
Simple wrapper of std::ffi::CString
Implementations
sourceimpl VisaString
impl VisaString
pub fn to_string_lossy(&self) -> Cow<'_, str>
pub fn from_string(s: String) -> Option<Self>
Trait Implementations
sourceimpl Clone for VisaString
impl Clone for VisaString
sourcefn clone(&self) -> VisaString
fn clone(&self) -> VisaString
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for VisaString
impl Debug for VisaString
sourceimpl Display for VisaString
impl Display for VisaString
sourceimpl From<CString> for VisaString
impl From<CString> for VisaString
sourceimpl Hash for VisaString
impl Hash for VisaString
sourceimpl Ord for VisaString
impl Ord for VisaString
sourcefn cmp(&self, other: &VisaString) -> Ordering
fn cmp(&self, other: &VisaString) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<VisaString> for VisaString
impl PartialEq<VisaString> for VisaString
sourcefn eq(&self, other: &VisaString) -> bool
fn eq(&self, other: &VisaString) -> bool
sourceimpl PartialOrd<VisaString> for VisaString
impl PartialOrd<VisaString> for VisaString
sourcefn partial_cmp(&self, other: &VisaString) -> Option<Ordering>
fn partial_cmp(&self, other: &VisaString) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for VisaString
impl StructuralEq for VisaString
impl StructuralPartialEq for VisaString
Auto Trait Implementations
impl RefUnwindSafe for VisaString
impl Send for VisaString
impl Sync for VisaString
impl Unpin for VisaString
impl UnwindSafe for VisaString
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more