pub fn new(primary_serializer: PrimarySerializer) -> Self {
        Self {
            primary_serializer,
            fallback_serializers: Vec::new(),
        }
    }
/// Constructs a new [`MultiSerializer`] with a given [`Serializer`] as the primary
/// serializer. The primary serializer is the one that will be used to sign values,
/// and the first serializer that will be attempted while trying to unsign.
///
/// # Remarks
/// If the primary serializer is used to unsign a value, no dynamic dispatch takes
/// place. That is to say, the [`MultiSerializer`] is its fastest when only the
/// primary serializer is required to unsign a value, and when signing a value,
/// it is a zero-cost abstraction.
Constructs a new [`MultiSerializer`] with a given [`Serializer`] as the primary
serializer. The primary serializer is the one that will be used to sign values,
and the first serializer that will be attempted while trying to unsign.
Constructs a new [ ` MultiSerializer ` ] with a given [ ` Serializer ` ] as the primary serializer . The primary serializer is the one that will be used to sign values and the first serializer that will be attempted while trying to unsign .
pub fn new(primary_serializer: PrimarySerializer) -> Self {
        Self {
            primary_serializer,
            fallback_serializers: Vec::new(),
        }
    }
pub fn new ( primary_serializer : PrimarySerializer ) -> Self { Self { primary_serializer , fallback_serializers : Vec :: new ( ) , } }
Constructs a new [`MultiSerializer`] with a given [`Serializer`] as the primary
serializer.
Constructs a new [ ` MultiSerializer ` ] with a given [ ` Serializer ` ] as the primary serializer .
primary_serializer
PrimarySerializer
primary_serializer
PrimarySerializer
remarks
If the primary serializer is used to unsign a value, no dynamic dispatch takes
place. That is to say, the [`MultiSerializer`] is its fastest when only the
primary serializer is required to unsign a value, and when signing a value,
it is a zero-cost abstraction.
If the primary serializer is used to unsign a value no dynamic dispatch takes place . That is to say the [ ` MultiSerializer ` ] is its fastest when only the primary serializer is required to unsign a value and when signing a value it is a zero - cost abstraction .