pub struct ByteAttribute {
pub bytes: Vec<u8>,
}Expand description
An opaque byte payload, used by SourceDebugExtension.
Fields§
§bytes: Vec<u8>Exact bytes, without text decoding or newline normalization.
Implementations§
Source§impl ByteAttribute
impl ByteAttribute
Sourcepub fn decode(reader: &mut ByteReader<'_>) -> Result<Self, AttributeError>
pub fn decode(reader: &mut ByteReader<'_>) -> Result<Self, AttributeError>
Retain all remaining bytes.
Trait Implementations§
Source§impl Clone for ByteAttribute
impl Clone for ByteAttribute
Source§fn clone(&self) -> ByteAttribute
fn clone(&self) -> ByteAttribute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ByteAttribute
impl Debug for ByteAttribute
impl Eq for ByteAttribute
Source§impl PartialEq for ByteAttribute
impl PartialEq for ByteAttribute
impl StructuralPartialEq for ByteAttribute
Auto Trait Implementations§
impl Freeze for ByteAttribute
impl RefUnwindSafe for ByteAttribute
impl Send for ByteAttribute
impl Sync for ByteAttribute
impl Unpin for ByteAttribute
impl UnsafeUnpin for ByteAttribute
impl UnwindSafe for ByteAttribute
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