pub struct AttachmentName(/* private fields */);
Methods from Deref<Target = Confined<AsciiString, 1, 20>>§
Sourcepub fn len_u8(&self) -> u8
pub fn len_u8(&self) -> u8
Returns number of elements in the confined collection as u8
. The
confinement guarantees that the collection length can’t exceed
u8::MAX
.
Sourcepub fn len_u16(&self) -> u16
pub fn len_u16(&self) -> u16
Returns number of elements in the confined collection as u16
. The
confinement guarantees that the collection length can’t exceed
u16::MAX
.
Sourcepub fn len_u24(&self) -> u24
pub fn len_u24(&self) -> u24
Returns number of elements in the confined collection as u24
. The
confinement guarantees that the collection length can’t exceed
u24::MAX
.
Trait Implementations§
Source§impl AsRef<Confined<AsciiString, 1, 20>> for AttachmentName
impl AsRef<Confined<AsciiString, 1, 20>> for AttachmentName
Source§fn as_ref(&self) -> &Confined<AsciiString, 1, 20>
fn as_ref(&self) -> &Confined<AsciiString, 1, 20>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<Confined<AsciiString, 1, 20>> for AttachmentName
impl Borrow<Confined<AsciiString, 1, 20>> for AttachmentName
Source§impl Clone for AttachmentName
impl Clone for AttachmentName
Source§fn clone(&self) -> AttachmentName
fn clone(&self) -> AttachmentName
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AttachmentName
impl Debug for AttachmentName
Source§impl Deref for AttachmentName
impl Deref for AttachmentName
Source§impl<'de> Deserialize<'de> for AttachmentName
impl<'de> Deserialize<'de> for AttachmentName
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AttachmentName
impl Display for AttachmentName
Source§impl From<&'static str> for AttachmentName
impl From<&'static str> for AttachmentName
Source§impl From<AttachmentName> for Confined<AsciiString, 1, 20>
impl From<AttachmentName> for Confined<AsciiString, 1, 20>
Source§fn from(wrapped: AttachmentName) -> Self
fn from(wrapped: AttachmentName) -> Self
Converts to this type from the input type.
Source§impl From<Confined<AsciiString, 1, 20>> for AttachmentName
impl From<Confined<AsciiString, 1, 20>> for AttachmentName
Source§fn from(v: Confined<AsciiString, 1, 20>) -> Self
fn from(v: Confined<AsciiString, 1, 20>) -> Self
Converts to this type from the input type.
Source§impl FromStr for AttachmentName
impl FromStr for AttachmentName
Source§impl Hash for AttachmentName
impl Hash for AttachmentName
Source§impl Ord for AttachmentName
impl Ord for AttachmentName
Source§fn cmp(&self, other: &AttachmentName) -> Ordering
fn cmp(&self, other: &AttachmentName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttachmentName
impl PartialEq for AttachmentName
Source§impl PartialOrd for AttachmentName
impl PartialOrd for AttachmentName
Source§impl Serialize for AttachmentName
impl Serialize for AttachmentName
Source§impl StrictDecode for AttachmentName
impl StrictDecode for AttachmentName
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictDumb for AttachmentName
impl StrictDumb for AttachmentName
fn strict_dumb() -> Self
Source§impl StrictEncode for AttachmentName
impl StrictEncode for AttachmentName
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictTuple for AttachmentName
impl StrictTuple for AttachmentName
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for AttachmentName
impl StrictType for AttachmentName
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB21
fn strict_name() -> Option<TypeName>
Source§impl TryFrom<String> for AttachmentName
impl TryFrom<String> for AttachmentName
Source§type Error = InvalidIdent
type Error = InvalidIdent
The type returned in the event of a conversion error.
Source§impl Wrapper for AttachmentName
impl Wrapper for AttachmentName
Source§type Inner = Confined<AsciiString, 1, 20>
type Inner = Confined<AsciiString, 1, 20>
Inner type wrapped by the current newtype
Source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl Eq for AttachmentName
impl StrictProduct for AttachmentName
impl StructuralPartialEq for AttachmentName
Auto Trait Implementations§
impl Freeze for AttachmentName
impl RefUnwindSafe for AttachmentName
impl Send for AttachmentName
impl Sync for AttachmentName
impl Unpin for AttachmentName
impl UnwindSafe for AttachmentName
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.