View Source argo_path_value (argo v1.0.0)
Summary
Types
-type segment() :: {field_name, argo_types:name()} | {list_index, non_neg_integer()}.
-type segments_list() :: [argo_types:name() | non_neg_integer()].
-type t() :: #argo_path_value{}.
Functions
-spec from_list(SegmentsList) -> PathValue when SegmentsList :: segments_list(), PathValue :: t().
-spec new() -> PathValue when PathValue :: t().
-spec push_field_name(PathValue, Name) -> PathValue when PathValue :: t(), Name :: argo_types:name().
-spec push_list_index(PathValue, Index) -> PathValue when PathValue :: t(), Index :: non_neg_integer().
-spec size(PathValue) -> non_neg_integer() when PathValue :: t().
-spec to_list(PathValue) -> SegmentsList when PathValue :: t(), SegmentsList :: segments_list().