pub struct StringOffset(/* private fields */);Expand description
Represents an offset into the Profile’s string table. Note that it cannot exceed u32 because an entire protobuf message must not be larger than or equal to 2 GiB. By the time you encode the tag and length prefix for each string, there’s no way to get this many unique-ish strings without first exceeding the protobuf 2 GiB limit.
A value of 0 means “no string” or “empty string” (they are synonymous). cbindgen:field-names=[offset]
Implementations§
Trait Implementations§
Source§impl Clone for StringOffset
impl Clone for StringOffset
Source§fn clone(&self) -> StringOffset
fn clone(&self) -> StringOffset
Returns a duplicate 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 StringOffset
impl Debug for StringOffset
Source§impl Default for StringOffset
impl Default for StringOffset
Source§fn default() -> StringOffset
fn default() -> StringOffset
Returns the “default value” for a type. Read more
Source§impl Display for StringOffset
impl Display for StringOffset
Source§impl From<&StringOffset> for i64
impl From<&StringOffset> for i64
Source§fn from(s: &StringOffset) -> Self
fn from(s: &StringOffset) -> Self
Converts to this type from the input type.
Source§impl From<&StringOffset> for u32
impl From<&StringOffset> for u32
Source§fn from(s: &StringOffset) -> Self
fn from(s: &StringOffset) -> Self
Converts to this type from the input type.
Source§impl From<&StringOffset> for u64
impl From<&StringOffset> for u64
Source§fn from(s: &StringOffset) -> Self
fn from(s: &StringOffset) -> Self
Converts to this type from the input type.
Source§impl From<&StringOffset> for usize
impl From<&StringOffset> for usize
Source§fn from(s: &StringOffset) -> Self
fn from(s: &StringOffset) -> Self
Converts to this type from the input type.
Source§impl From<&u32> for StringOffset
impl From<&u32> for StringOffset
Source§impl From<StringOffset> for i64
impl From<StringOffset> for i64
Source§fn from(s: StringOffset) -> Self
fn from(s: StringOffset) -> Self
Converts to this type from the input type.
Source§impl From<StringOffset> for u32
impl From<StringOffset> for u32
Source§fn from(s: StringOffset) -> Self
fn from(s: StringOffset) -> Self
Converts to this type from the input type.
Source§impl From<StringOffset> for u64
impl From<StringOffset> for u64
Source§fn from(s: StringOffset) -> Self
fn from(s: StringOffset) -> Self
Converts to this type from the input type.
Source§impl From<StringOffset> for usize
impl From<StringOffset> for usize
Source§fn from(s: StringOffset) -> Self
fn from(s: StringOffset) -> Self
Converts to this type from the input type.
Source§impl From<u16> for StringOffset
impl From<u16> for StringOffset
Source§impl From<u32> for StringOffset
impl From<u32> for StringOffset
Source§impl From<u8> for StringOffset
impl From<u8> for StringOffset
Source§impl Hash for StringOffset
impl Hash for StringOffset
Source§impl Ord for StringOffset
impl Ord for StringOffset
Source§fn cmp(&self, other: &StringOffset) -> Ordering
fn cmp(&self, other: &StringOffset) -> 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 StringOffset
impl PartialEq for StringOffset
Source§impl PartialOrd for StringOffset
impl PartialOrd for StringOffset
Source§impl TryFrom<&i64> for StringOffset
impl TryFrom<&i64> for StringOffset
Source§impl TryFrom<&u64> for StringOffset
impl TryFrom<&u64> for StringOffset
Source§impl TryFrom<&usize> for StringOffset
impl TryFrom<&usize> for StringOffset
Source§impl TryFrom<i64> for StringOffset
impl TryFrom<i64> for StringOffset
Source§impl TryFrom<u64> for StringOffset
impl TryFrom<u64> for StringOffset
Source§impl TryFrom<usize> for StringOffset
impl TryFrom<usize> for StringOffset
Source§impl Value for StringOffset
§Safety
The Default implementation will return all zero-representations.
impl Value for StringOffset
§Safety
The Default implementation will return all zero-representations.
impl Copy for StringOffset
impl Eq for StringOffset
impl StructuralPartialEq for StringOffset
Auto Trait Implementations§
impl Freeze for StringOffset
impl RefUnwindSafe for StringOffset
impl Send for StringOffset
impl Sync for StringOffset
impl Unpin for StringOffset
impl UnsafeUnpin for StringOffset
impl UnwindSafe for StringOffset
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