var searchIndex = {}; searchIndex["ascii"] = {"doc":"Operations on ASCII strings and characters","items":[[3,"Ascii","ascii","Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.",null,null],[3,"AsciiString","","A growable string stored as an ascii encoded buffer.",null,null],[3,"AsciiStr","","A borrowed ascii string, like a slice into an `AsciiString`.",null,null],[8,"AsciiCast","","Trait for converting into an ascii type.",null,null],[16,"Target","","",0,null],[11,"to_ascii","","Convert to an ascii type, return Err(()) on non-ASCII input.",0,null],[10,"to_ascii_nocheck","","Convert to an ascii type, not doing any range asserts",0,null],[8,"OwnedAsciiCast","","Trait for copyless casting to an ascii vector.",null,null],[11,"into_ascii","","Take ownership and cast to an ascii vector. On non-ASCII input return ownership of data\nthat was attempted to cast to ascii in `Err(Self)`.",1,null],[10,"into_ascii_nocheck","","Take ownership and cast to an ascii vector.\nDoes not perform validation checks.",1,null],[11,"hash","","",2,null],[11,"cmp","","",2,null],[11,"partial_cmp","","",2,null],[11,"lt","","",2,null],[11,"le","","",2,null],[11,"gt","","",2,null],[11,"ge","","",2,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"clone","","",2,null],[11,"from","","Constructs an Ascii character from a `char`.",2,{"inputs":[{"name":"char"}],"output":{"name":"result"}}],[11,"from_byte","","Constructs an Ascii character from a `u8`.",2,{"inputs":[{"name":"u8"}],"output":{"name":"result"}}],[11,"as_byte","","Converts an ascii character into a `u8`.",2,null],[11,"as_char","","Converts an ascii character into a `char`.",2,null],[11,"is_alphabetic","","Check if the character is a letter (a-z, A-Z)",2,null],[11,"is_digit","","Check if the character is a number (0-9)",2,null],[11,"is_alphanumeric","","Check if the character is a letter or number",2,null],[11,"is_blank","","Check if the character is a space or horizontal tab",2,null],[11,"is_control","","Check if the character is a control character",2,null],[11,"is_graph","","Checks if the character is printable (except space)",2,null],[11,"is_print","","Checks if the character is printable (including space)",2,null],[11,"is_lowercase","","Checks if the character is alphabetic and lowercase",2,null],[11,"is_uppercase","","Checks if the character is alphabetic and uppercase",2,null],[11,"is_punctuation","","Checks if the character is punctuation",2,null],[11,"is_hex","","Checks if the character is a valid hex digit",2,null],[11,"fmt","","",2,null],[11,"fmt","","",2,null],[11,"hash","","",3,null],[11,"cmp","","",3,null],[11,"partial_cmp","","",3,null],[11,"lt","","",3,null],[11,"le","","",3,null],[11,"gt","","",3,null],[11,"ge","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"clone","","",3,null],[11,"new","","Creates a new ascii string buffer initialized with the empty ascii string.",3,{"inputs":[],"output":{"name":"asciistring"}}],[11,"with_capacity","","Creates a new ascii string buffer with the given capacity. The string will be able to hold\nexactly `capacity` bytes without reallocating. If `capacity` is 0, the ascii string will not\nallocate.",3,{"inputs":[{"name":"usize"}],"output":{"name":"asciistring"}}],[11,"push_str","","Pushes the given ascii string onto this ascii string buffer.",3,null],[11,"capacity","","Returns the number of bytes that this ascii string buffer can hold without reallocating.",3,null],[11,"reserve","","Reserves capacity for at least `additional` more bytes to be inserted in the given\n`AsciiString`. The collection may reserve more space to avoid frequent reallocations.",3,null],[11,"reserve_exact","","Reserves the minimum capacity for exactly `additional` more bytes to be inserted in the\ngiven `AsciiString`. Does nothing if the capacity is already sufficient.",3,null],[11,"shrink_to_fit","","Shrinks the capacity of this ascii string buffer to match it's length.",3,null],[11,"push","","Adds the given ascii character to the end of the ascii string.",3,null],[11,"truncate","","Shortens a ascii string to the specified length.",3,null],[11,"pop","","Removes the last character from the ascii string buffer and returns it. Returns `None` if\nthis string buffer is empty.",3,null],[11,"remove","","Removed the ascii character from the string buffer at bytes position `idx` and returns it.",3,null],[11,"insert","","Inserts a character into the ascii string buffer at byte position `idx`.",3,null],[11,"len","","Returns the number of bytes in this ascii string.",3,null],[11,"is_empty","","Returns true if the ascii string contains no bytes.",3,null],[11,"clear","","Truncates the ascii string, returning it to 0 length.",3,null],[11,"from_bytes","","Converts anything that can represent a byte buffer into an `AsciiString`.",3,{"inputs":[{"name":"b"}],"output":{"name":"result"}}],[11,"from_str","","",3,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"deref","","",3,null],[11,"deref_mut","","",3,null],[11,"borrow","","",3,null],[11,"into","","",3,null],[11,"into","","",3,null],[11,"as_ref","","",3,null],[11,"fmt","","",3,null],[11,"fmt","","",3,null],[11,"default","","",3,{"inputs":[],"output":{"name":"asciistring"}}],[11,"from_iter","","",3,{"inputs":[{"name":"i"}],"output":{"name":"asciistring"}}],[11,"from_iter","","",3,{"inputs":[{"name":"i"}],"output":{"name":"asciistring"}}],[11,"extend","","",3,null],[11,"extend","","",3,null],[11,"extend","","",3,null],[11,"add","","",3,null],[11,"index","","",3,null],[11,"index_mut","","",3,null],[11,"hash","","",4,null],[11,"new","","Coerces into an `AsciiStr` slice.",4,{"inputs":[{"name":"s"}],"output":{"name":"asciistr"}}],[11,"as_str","","Converts `&self` to a `&str` slice.",4,null],[11,"to_ascii_string","","Copies the content of this `AsciiStr` into an owned `AsciiString`.",4,null],[11,"as_bytes","","Converts `&self` into a byte slice.",4,null],[11,"from_bytes","","Converts anything that can represent a byte slice into an `AsciiStr`.",4,{"inputs":[{"name":"b"}],"output":{"name":"option"}}],[11,"from_str","","Converts a borrowed string to a borrows ascii string.",4,{"inputs":[{"name":"str"}],"output":{"name":"option"}}],[11,"len","","Returns the number of bytes in this ascii string.",4,null],[11,"is_empty","","Returns true if the ascii string contains no bytes.",4,null],[11,"trim","","Returns an ascii string slice with leading and trailing whitespace removed.",4,null],[11,"trim_left","","Returns a string slice with leading whitespace removed.",4,null],[11,"trim_right","","Returns a string slice with trainling whitespace removed.",4,null],[11,"eq","","",4,null],[11,"partial_cmp","","",4,null],[11,"lt","","",4,null],[11,"le","","",4,null],[11,"gt","","",4,null],[11,"ge","","",4,null],[11,"cmp","","",4,null],[11,"to_owned","","",4,null],[11,"as_ref","","",4,null],[11,"as_ref","","",4,null],[11,"fmt","","",4,null],[11,"fmt","","",4,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"eq","","",3,null],[11,"eq","","",4,null],[11,"index","","",4,null],[11,"index_mut","","",4,null],[11,"index","","",4,null],[11,"index_mut","","",4,null],[11,"index","","",4,null],[11,"index_mut","","",4,null],[11,"index","","",4,null],[11,"index_mut","","",4,null],[11,"index","","",4,null],[11,"index_mut","","",4,null]],"paths":[[8,"AsciiCast"],[8,"OwnedAsciiCast"],[3,"Ascii"],[3,"AsciiString"],[3,"AsciiStr"]]}; initSearch(searchIndex);