trl_codegen 1.2.1

This library provides auto generation of some common methods based on Rust macros
Documentation
1
2
3
4
5
6
7
8
9
10
//! # new_from_args
//!
//! This module contains the `NewFromArgs` trait which represents an attribute info struct that can be created from arguments

use syn::{Token, punctuated::Punctuated};

/// Represents an attribute info struct that can be created from arguments
pub trait NewFromArgs<TArg> {
    fn new(args: Punctuated<TArg, Token![,]>) -> Self;
}