Struct rustbus::wire::SignatureWrapper
source · pub struct SignatureWrapper<S: AsRef<str>>(_);
Expand description
Wraps a String or a &str or whatever implements AsRef
Implementations§
Trait Implementations§
source§impl<S: AsRef<str>> Marshal for SignatureWrapper<S>
impl<S: AsRef<str>> Marshal for SignatureWrapper<S>
fn marshal(&self, ctx: &mut MarshalContext<'_, '_>) -> Result<(), MarshalError>
fn marshal_as_variant( &self, ctx: &mut MarshalContext<'_, '_> ) -> Result<(), MarshalError>
source§impl<S: PartialEq + AsRef<str>> PartialEq<SignatureWrapper<S>> for SignatureWrapper<S>
impl<S: PartialEq + AsRef<str>> PartialEq<SignatureWrapper<S>> for SignatureWrapper<S>
source§fn eq(&self, other: &SignatureWrapper<S>) -> bool
fn eq(&self, other: &SignatureWrapper<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<S: AsRef<str>> Signature for SignatureWrapper<S>
impl<S: AsRef<str>> Signature for SignatureWrapper<S>
fn signature() -> Type
fn alignment() -> usize
source§fn sig_str(s_buf: &mut SignatureBuffer)
fn sig_str(s_buf: &mut SignatureBuffer)
Appends the signature of the type to the
SignatureBuffer
. Read moresource§impl<'buf, 'fds, S: AsRef<str> + From<&'buf str> + Unmarshal<'buf, 'fds>> Unmarshal<'buf, 'fds> for SignatureWrapper<S>
impl<'buf, 'fds, S: AsRef<str> + From<&'buf str> + Unmarshal<'buf, 'fds>> Unmarshal<'buf, 'fds> for SignatureWrapper<S>
fn unmarshal(ctx: &mut UnmarshalContext<'fds, 'buf>) -> UnmarshalResult<Self>
impl<S: Eq + AsRef<str>> Eq for SignatureWrapper<S>
impl<S: AsRef<str>> StructuralEq for SignatureWrapper<S>
impl<S: AsRef<str>> StructuralPartialEq for SignatureWrapper<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for SignatureWrapper<S>where S: RefUnwindSafe,
impl<S> Send for SignatureWrapper<S>where S: Send,
impl<S> Sync for SignatureWrapper<S>where S: Sync,
impl<S> Unpin for SignatureWrapper<S>where S: Unpin,
impl<S> UnwindSafe for SignatureWrapper<S>where S: UnwindSafe,
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