pub struct String(/* private fields */);Expand description
Wrapper for
UA_String
from open62541_sys.
This owns the wrapped data. When the wrapper is dropped, the inner value is cleaned up
with UA_clear() to release dynamically allocated memory held by the value.
Implementations§
source§impl String
impl String
sourcepub fn is_invalid(&self) -> bool
pub fn is_invalid(&self) -> bool
Checks if string is invalid.
The invalid state is defined by OPC UA. It is a third state which is distinct from empty and regular (non-empty) strings.
pub fn as_slice(&self) -> Option<&[u8]>
👎Deprecated: use
Self::as_bytes() insteadTrait Implementations§
source§impl DataType for String
impl DataType for String
source§unsafe fn from_raw(src: Self::Inner) -> Self
unsafe fn from_raw(src: Self::Inner) -> Self
Creates wrapper by taking ownership of value. Read more
source§fn clone_into_raw(&self, dst: &mut Self::Inner)
fn clone_into_raw(&self, dst: &mut Self::Inner)
Clones value into
dst. Read moresource§fn move_into_raw(self, dst: &mut Self::Inner)
fn move_into_raw(self, dst: &mut Self::Inner)
Moves value into
dst, giving up ownership. Read moresource§unsafe fn to_raw_copy(this: &Self) -> Self::Inner
unsafe fn to_raw_copy(this: &Self) -> Self::Inner
Creates copy without giving up ownership. Read more
source§unsafe fn as_mut(&mut self) -> &mut Self::Inner
unsafe fn as_mut(&mut self) -> &mut Self::Inner
Returns exclusive reference to value. Read more
source§impl Ord for String
impl Ord for String
source§impl PartialOrd for String
impl PartialOrd for String
impl Eq for String
impl Send for String
impl Sync for String
Auto Trait Implementations§
impl Freeze for String
impl RefUnwindSafe for String
impl Unpin for String
impl UnwindSafe for String
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)