Struct LcStr

struct LcStr<E: Endian> { ... }

A variable length string in a load command.

The strings are stored just after the load command structure and the offset is from the start of the load command structure. The size of the string is reflected in the cmdsize field of the load command. Once again any padded bytes to bring the cmdsize field to a multiple of 4 bytes must be zero.

Fields

offset: crate::endian::U32<E>

offset to the string

Implementations

impl<E> Freeze for LcStr<E>

impl<E> RefUnwindSafe for LcStr<E>

impl<E> Send for LcStr<E>

impl<E> Sync for LcStr<E>

impl<E> Unpin for LcStr<E>

impl<E> UnwindSafe for LcStr<E>

impl<E: $crate::clone::Clone + Endian> Clone for LcStr<E>

fn clone(self: &Self) -> LcStr<E>

impl<E: $crate::fmt::Debug + Endian> Debug for LcStr<E>

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl<E: $crate::marker::Copy + Endian> Copy for LcStr<E>

impl<E: Endian> Pod for LcStr<E>

impl<T> Any for LcStr<E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for LcStr<E>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for LcStr<E>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for LcStr<E>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for LcStr<E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for LcStr<E>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for LcStr<E>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for LcStr<E>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for LcStr<E>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>