logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

"Tangence::Meta::Struct" - structure representing one "Tangence" structure type

Accessors

defined
          $defined = $struct->defined

       Returns true if a definition of the structure has been provided using "define".

   name
          $name = $struct->name

       Returns the name of the structure

   fields
          @fields = $struct->fields

       Returns a list of the fields defined on the structure, in their order of definition.

Author

       Paul Evans <leonerd@leonerd.org.uk>

perl v5.40.0                                       2024-09-13                        Tangence::Meta::Struct(3pm)

Constructor

new
          $struct = Tangence::Meta::Struct->new( name => $name )

       Returns a new instance representing the given name.

   define
          $struct->define( %args )

       Provides a definition for the structure.

       fields => ARRAY
               ARRAY   reference   containing   metadata   about   the   structure's  fields,  as  instances  of
               Tangence::Meta::Field.

Description

       This data structure stores information about one Tangence structure type.  Once constructed and defined,
       such objects are immutable.

Name

       "Tangence::Meta::Struct" - structure representing one "Tangence" structure type

See Also