pub struct Property {
pub tag: TagNameType,
pub args: Box<[Expr]>,
}Fields§
§tag: TagNameTypeSP or type.SP. The type of single SP is unkown until queried from definition.
args: Box<[Expr]>Args in SP(args) such as arg1, arg2.
Implementations§
Source§impl Property
impl Property
Sourcepub fn gen_doc(&self) -> Option<String>
pub fn gen_doc(&self) -> Option<String>
Generate #[doc] for this property from its desc string interpolation.
None means SP is not defined with desc, thus nothing to generate.
Sourcepub fn args_in_any_tag(&self) -> Option<Vec<PropertiesAndReason>>
pub fn args_in_any_tag(&self) -> Option<Vec<PropertiesAndReason>>
SPs in any tag. None means the tag is not any or empty args.
pub fn args_as_string(&self) -> Box<[String]>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Property
impl<'de> Deserialize<'de> for Property
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
Auto Trait Implementations§
impl !Send for Property
impl !Sync for Property
impl Freeze for Property
impl RefUnwindSafe for Property
impl Unpin for Property
impl UnsafeUnpin for Property
impl UnwindSafe for Property
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