pub enum PouType {
Program,
Function,
FunctionBlock,
Action,
Class,
Method {
parent: String,
property: Option<(String, PropertyKind)>,
declaration_kind: DeclarationKind,
},
Init,
ProjectInit,
}Variants§
Program
Function
FunctionBlock
Action
Class
Method
Fields
§
property: Option<(String, PropertyKind)>The property name (pre-mangled) and its type, if the method originated from a property
§
declaration_kind: DeclarationKindInit
ProjectInit
Implementations§
Source§impl PouType
impl PouType
Sourcepub fn get_optional_owner_class(&self) -> Option<String>
pub fn get_optional_owner_class(&self) -> Option<String>
returns Some(owner_class) if this is a Method or otherwhise None
pub fn is_function_method_or_init(&self) -> bool
pub fn is_stateful(&self) -> bool
pub fn is_class(&self) -> bool
pub fn is_function_block(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PouType
impl<'de> Deserialize<'de> for PouType
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
impl Eq for PouType
impl StructuralPartialEq for PouType
Auto Trait Implementations§
impl Freeze for PouType
impl RefUnwindSafe for PouType
impl Send for PouType
impl Sync for PouType
impl Unpin for PouType
impl UnsafeUnpin for PouType
impl UnwindSafe for PouType
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