Struct pax_manifest::PropertyDefinition
source · pub struct PropertyDefinition {
pub name: String,
pub flags: PropertyDefinitionFlags,
pub type_id: TypeId,
}
Fields§
§name: String
String representation of the symbolic identifier of a declared Property
flags: PropertyDefinitionFlags
Flags, used ultimately by ExpressionSpecInvocations, to denote
e.g. whether a property is the i
or elem
of a Repeat
, which allows
for special-handling the RIL that invokes these values
type_id: TypeId
Statically known type_id for this Property’s associated TypeDefinition
Implementations§
source§impl PropertyDefinition
impl PropertyDefinition
pub fn get_type_definition<'a>(&'a self, tt: &'a TypeTable) -> &TypeDefinition
pub fn get_inner_iterable_type_definition<'a>( &'a self, tt: &'a TypeTable ) -> Option<&TypeDefinition>
source§impl PropertyDefinition
impl PropertyDefinition
Describes static metadata surrounding a property, for example
the string representation of the property’s name and a TypeInfo
entry for the property’s statically discovered type
sourcepub fn primitive_with_name(type_name: &str, symbol_name: &str) -> Self
pub fn primitive_with_name(type_name: &str, symbol_name: &str) -> Self
Shorthand factory / constructor
Trait Implementations§
source§impl Clone for PropertyDefinition
impl Clone for PropertyDefinition
source§fn clone(&self) -> PropertyDefinition
fn clone(&self) -> PropertyDefinition
Returns a copy 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 PropertyDefinition
impl Debug for PropertyDefinition
source§impl Default for PropertyDefinition
impl Default for PropertyDefinition
source§fn default() -> PropertyDefinition
fn default() -> PropertyDefinition
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PropertyDefinition
impl<'de> Deserialize<'de> for PropertyDefinition
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 Freeze for PropertyDefinition
impl RefUnwindSafe for PropertyDefinition
impl Send for PropertyDefinition
impl Sync for PropertyDefinition
impl Unpin for PropertyDefinition
impl UnwindSafe for PropertyDefinition
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
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.