Struct vdf_parser::VdfAttribute
source · pub struct VdfAttribute {
pub comments_before: Vec<String>,
pub comment_after: Option<String>,
pub key: String,
pub value: VdfValue,
}
Fields§
§comments_before: Vec<String>
§comment_after: Option<String>
§key: String
§value: VdfValue
Implementations§
source§impl VdfAttribute
impl VdfAttribute
pub fn get_block_value(&self, key: &str) -> Option<&VdfAttribute>
Trait Implementations§
source§impl Debug for VdfAttribute
impl Debug for VdfAttribute
source§impl PartialEq for VdfAttribute
impl PartialEq for VdfAttribute
source§fn eq(&self, other: &VdfAttribute) -> bool
fn eq(&self, other: &VdfAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VdfAttribute
Auto Trait Implementations§
impl RefUnwindSafe for VdfAttribute
impl Send for VdfAttribute
impl Sync for VdfAttribute
impl Unpin for VdfAttribute
impl UnwindSafe for VdfAttribute
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