pub struct RawRdObject { /* private fields */ }Expand description
A recursively preserved object used by raw attribute values and lists.
Keeping the object’s attributes alongside its value is important for
structures such as srcref: the integer vector itself carries a nested
srcfile attribute. This producer-agnostic representation retains that
shape without exposing an RDS decoder type from rd-ast.
Implementations§
Source§impl RawRdObject
impl RawRdObject
pub fn value(&self) -> &RawRdValue
pub fn attributes(&self) -> &[RdAttribute]
pub fn into_parts(self) -> (RawRdValue, Vec<RdAttribute>)
Trait Implementations§
Source§impl Clone for RawRdObject
impl Clone for RawRdObject
Source§fn clone(&self) -> RawRdObject
fn clone(&self) -> RawRdObject
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 RawRdObject
impl Debug for RawRdObject
Source§impl<'de> Deserialize<'de> for RawRdObject
impl<'de> Deserialize<'de> for RawRdObject
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 PartialEq for RawRdObject
impl PartialEq for RawRdObject
Source§impl Serialize for RawRdObject
impl Serialize for RawRdObject
impl StructuralPartialEq for RawRdObject
Auto Trait Implementations§
impl Freeze for RawRdObject
impl RefUnwindSafe for RawRdObject
impl Send for RawRdObject
impl Sync for RawRdObject
impl Unpin for RawRdObject
impl UnsafeUnpin for RawRdObject
impl UnwindSafe for RawRdObject
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