pub fn make_segments(text: &str) -> Vec<Self> {
        if text.is_empty() {
            vec![]
        } else {
            vec![if QrSegment::is_numeric(text) {
                QrSegment::make_numeric(text)
            } else if QrSegment::is_alphanumeric(text) {
                QrSegment::make_alphanumeric(text)
            } else {
                QrSegment::make_bytes(text.as_bytes())
            }]
        }
    }
/// Returns a list of zero or more segments to represent the given Unicode text string.
///
/// The result may use various segment modes and switch
/// modes to optimize the length of the bit stream.
Returns a list of zero or more segments to represent the given Unicode text string.
The result may use various segment modes and switch
modes to optimize the length of the bit stream.
Returns a list of zero or more segments to represent the given Unicode text string . The result may use various segment modes and switch modes to optimize the length of the bit stream .
pub fn make_segments(text: &str) -> Vec<Self> {
        if text.is_empty() {
            vec![]
        } else {
            vec![if QrSegment::is_numeric(text) {
                QrSegment::make_numeric(text)
            } else if QrSegment::is_alphanumeric(text) {
                QrSegment::make_alphanumeric(text)
            } else {
                QrSegment::make_bytes(text.as_bytes())
            }]
        }
    }
pub fn make_segments ( text : & str ) -> Vec < Self > { if text . is_empty ( ) { vec ! [ ] } else { vec ! [ if QrSegment is_numeric ( text ) { QrSegment make_numeric ( text ) } else if QrSegment is_alphanumeric ( text ) { QrSegment make_alphanumeric ( text ) } else { QrSegment make_bytes ( text as_bytes ( ) ) } ] } }
Returns a list of zero or more segments to represent the given Unicode text string.
Returns a list of zero or more segments to represent the given Unicode text string .
text
&str