pub struct Pou {Show 14 fields
pub id: AstId,
pub name: String,
pub kind: PouType,
pub variable_blocks: Vec<VariableBlock>,
pub return_type: Option<DataTypeDeclaration>,
pub location: SourceLocation,
pub name_location: SourceLocation,
pub poly_mode: Option<PolymorphismMode>,
pub generics: Vec<GenericBinding>,
pub linkage: LinkageType,
pub super_class: Option<Identifier>,
pub is_const: bool,
pub interfaces: Vec<Identifier>,
pub properties: Vec<PropertyBlock>,
}Fields§
§id: AstId§name: String§kind: PouType§variable_blocks: Vec<VariableBlock>§return_type: Option<DataTypeDeclaration>§location: SourceLocationThe SourceLocation of the whole POU
name_location: SourceLocationThe SourceLocation of the POUs name
poly_mode: Option<PolymorphismMode>§generics: Vec<GenericBinding>§linkage: LinkageType§super_class: Option<Identifier>§is_const: bool§interfaces: Vec<Identifier>A list of interfaces this POU implements
properties: Vec<PropertyBlock>A list of properties this POU contains
Implementations§
Source§impl Pou
impl Pou
pub fn get_return_name(&self) -> &str
pub fn calc_return_name(pou_name: &str) -> &str
pub fn is_aggregate(&self) -> bool
pub fn is_generic(&self) -> bool
pub fn is_stateful(&self) -> bool
pub fn is_built_in(&self) -> bool
pub fn is_function_block(&self) -> bool
pub fn is_class(&self) -> bool
pub fn is_program(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pouwhere
'de: 'static,
impl<'de> Deserialize<'de> for Pouwhere
'de: 'static,
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 StructuralPartialEq for Pou
Auto Trait Implementations§
impl Freeze for Pou
impl RefUnwindSafe for Pou
impl Send for Pou
impl Sync for Pou
impl Unpin for Pou
impl UnsafeUnpin for Pou
impl UnwindSafe for Pou
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