pub struct SignatureWrapper<S>(/* private fields */)
where
S: AsRef<str>;
Expand description
Wraps a String or a &str or whatever implements AsRef
Implementations§
Source§impl<S> SignatureWrapper<S>
impl<S> SignatureWrapper<S>
pub fn new(sig: S) -> Result<SignatureWrapper<S>, Error>
Trait Implementations§
Source§impl<S> AsRef<str> for SignatureWrapper<S>
impl<S> AsRef<str> for SignatureWrapper<S>
Source§impl<S> Debug for SignatureWrapper<S>
impl<S> Debug for SignatureWrapper<S>
Source§impl<S> Marshal for SignatureWrapper<S>
impl<S> Marshal for SignatureWrapper<S>
fn marshal(&self, ctx: &mut MarshalContext<'_, '_>) -> Result<(), Error>
fn marshal_as_variant( &self, ctx: &mut MarshalContext<'_, '_>, ) -> Result<(), Error>
Source§impl<S> PartialEq for SignatureWrapper<S>
impl<S> PartialEq for SignatureWrapper<S>
Source§impl<S> Signature for SignatureWrapper<S>
impl<S> 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> Unmarshal<'buf, 'fds> for SignatureWrapper<S>
impl<'buf, 'fds, S> Unmarshal<'buf, 'fds> for SignatureWrapper<S>
fn unmarshal( ctx: &mut UnmarshalContext<'fds, 'buf>, ) -> Result<(usize, SignatureWrapper<S>), Error>
impl<S> StructuralPartialEq for SignatureWrapper<S>
Auto Trait Implementations§
impl<S> Freeze for SignatureWrapper<S>where
S: Freeze,
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