pub fn new(
        tag: Option<UnicodeDataDecompositionTag>,
        mapping: &[Codepoint],
    ) -> Result<UnicodeDataDecomposition, Error> {
        let mut x = UnicodeDataDecomposition::default();
        x.tag = tag;
        for &cp in mapping {
            x.push(cp)?;
        }
        Ok(x)
    }
/// Create a new decomposition mapping with the given tag and codepoints.
///
/// If there are too many codepoints, then an error is returned.
Create a new decomposition mapping with the given tag and codepoints.
If there are too many codepoints, then an error is returned.
Create a new decomposition mapping with the given tag and codepoints . If there are too many codepoints then an error is returned .
pub fn new(
        tag: Option<UnicodeDataDecompositionTag>,
        mapping: &[Codepoint],
    ) -> Result<UnicodeDataDecomposition, Error> {
        let mut x = UnicodeDataDecomposition::default();
        x.tag = tag;
        for &cp in mapping {
            x.push(cp)?;
        }
        Ok(x)
    }
pub fn new ( tag : Option < UnicodeDataDecompositionTag > , mapping : & [ Codepoint ] , ) -> Result < UnicodeDataDecomposition , Error > { let mut x = UnicodeDataDecomposition :: default ( ) ; x . tag = tag ; for & cp in mapping { x . push ( cp ) ? ; } Ok ( x ) }
Create a new decomposition mapping with the given tag and codepoints.
Create a new decomposition mapping with the given tag and codepoints .
tag
Option<UnicodeDataDecompositionTag>
mapping
&[Codepoint]
tag
Option<UnicodeDataDecompositionTag>
mapping
&[Codepoint]