[−]Struct dasn1::types::prefix::Prefixed
Methods
impl<P, C, N, T> Prefixed<P, C, N, T> where
C: ConstClass,
N: Unsigned,
P: Prefix,
C: ConstClass,
N: Unsigned,
P: Prefix,
pub fn new(value: T) -> Prefixed<P, C, N, T>
pub fn into_inner(self) -> T
Trait Implementations
impl<P, C, N, T> PartialEq<Prefixed<P, C, N, T>> for Prefixed<P, C, N, T> where
C: ConstClass + PartialEq<C>,
N: PartialEq<N> + Unsigned,
P: Prefix + PartialEq<P>,
T: PartialEq<T>,
C: ConstClass + PartialEq<C>,
N: PartialEq<N> + Unsigned,
P: Prefix + PartialEq<P>,
T: PartialEq<T>,
fn eq(&self, other: &Prefixed<P, C, N, T>) -> bool
fn ne(&self, other: &Prefixed<P, C, N, T>) -> bool
impl<P, C, N, T> Debug for Prefixed<P, C, N, T> where
C: ConstClass + Debug,
N: Debug + Unsigned,
P: Prefix + Debug,
T: Debug,
C: ConstClass + Debug,
N: Debug + Unsigned,
P: Prefix + Debug,
T: Debug,
impl<P, C, N, T> Serialize for Prefixed<P, C, N, T> where
C: ConstClass,
N: Unsigned,
P: Prefix,
T: Serialize,
C: ConstClass,
N: Unsigned,
P: Prefix,
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl<'de, P, C, N, T> Deserialize<'de> for Prefixed<P, C, N, T> where
C: ConstClass,
N: Unsigned,
P: Prefix,
T: Deserialize<'de>,
C: ConstClass,
N: Unsigned,
P: Prefix,
T: Deserialize<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Prefixed<P, C, N, T>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
deserializer: D
) -> Result<Prefixed<P, C, N, T>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl<P, C, N, T> Clone for Prefixed<P, C, N, T> where
C: ConstClass + Clone,
N: Clone + Unsigned,
P: Prefix + Clone,
T: Clone,
C: ConstClass + Clone,
N: Clone + Unsigned,
P: Prefix + Clone,
T: Clone,
Auto Trait Implementations
impl<P, C, N, T> Sync for Prefixed<P, C, N, T> where
C: Sync,
N: Sync,
P: Sync,
T: Sync,
C: Sync,
N: Sync,
P: Sync,
T: Sync,
impl<P, C, N, T> Unpin for Prefixed<P, C, N, T> where
C: Unpin,
N: Unpin,
P: Unpin,
T: Unpin,
C: Unpin,
N: Unpin,
P: Unpin,
T: Unpin,
impl<P, C, N, T> Send for Prefixed<P, C, N, T> where
C: Send,
N: Send,
P: Send,
T: Send,
C: Send,
N: Send,
P: Send,
T: Send,
impl<P, C, N, T> UnwindSafe for Prefixed<P, C, N, T> where
C: UnwindSafe,
N: UnwindSafe,
P: UnwindSafe,
T: UnwindSafe,
C: UnwindSafe,
N: UnwindSafe,
P: UnwindSafe,
T: UnwindSafe,
impl<P, C, N, T> RefUnwindSafe for Prefixed<P, C, N, T> where
C: RefUnwindSafe,
N: RefUnwindSafe,
P: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
N: RefUnwindSafe,
P: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self