pub struct StringValue;Expand description
Marker used by typed descriptors whose decoded value is a borrowed C string. SCS strings are UTF-8 and remain valid only for the current callback.
Trait Implementations§
Source§impl Clone for StringValue
impl Clone for StringValue
Source§fn clone(&self) -> StringValue
fn clone(&self) -> StringValue
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 moreimpl Copy for StringValue
Source§impl Debug for StringValue
impl Debug for StringValue
Source§impl Default for StringValue
impl Default for StringValue
Source§fn default() -> StringValue
fn default() -> StringValue
Returns the “default value” for a type. Read more
impl Eq for StringValue
Source§impl PartialEq for StringValue
impl PartialEq for StringValue
Source§impl SdkValue for StringValue
impl SdkValue for StringValue
Source§const VALUE_TYPE: ValueType = ValueType::String
const VALUE_TYPE: ValueType = ValueType::String
High-level discriminator retained by type-erased framework descriptors.
Source§const TYPE: ScsValueType = sys::SCS_VALUE_TYPE_STRING
const TYPE: ScsValueType = sys::SCS_VALUE_TYPE_STRING
Numeric discriminator passed across the C ABI.
type Decoded<'a> = &'a CStr
fn decode(value: ValueRef<'_>) -> Option<Self::Decoded<'_>>
impl StructuralPartialEq for StringValue
Auto Trait Implementations§
impl Freeze for StringValue
impl RefUnwindSafe for StringValue
impl Send for StringValue
impl Sync for StringValue
impl Unpin for StringValue
impl UnsafeUnpin for StringValue
impl UnwindSafe for StringValue
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