Function serializer [src]
Creates a new Serializer with the given writer and options.
Prototype
pub fn serializer(writer: anytype, options: SerializerOptions) Serializer(@TypeOf(writer))
Parameters
options: SerializerOptions
Source
pub fn serializer(writer: anytype, options: SerializerOptions) Serializer(@TypeOf(writer)) {
return .init(writer, options);
}