Lines Matching defs:from
20 //! The following examples highlight some of the API use cases such that users coming from using C
152 //! It's trivial to convert from a `BaudRate` to a `u32` on BSDs:
181 //! assert_eq!(u32::from(BaudRate::B9600), 9600u32);
233 /// standard fields. The only safe way to obtain an instance of this struct is to extract it from
307 /// Updates the wrapper values from the internal `libc::termios` data structure.
327 fn from(termios: libc::termios) -> Self {
346 fn from(termios: Termios) -> Self {
475 fn from(b: BaudRate) -> u32 {
482 fn from(b: BaudRate) -> u8 {
1002 /// `cfgetispeed()` extracts the input baud rate from the given `Termios` structure.
1013 /// `cfgetospeed()` extracts the output baud rate from the given `Termios` structure.
1060 /// `cfgetispeed()` extracts the input baud rate from the given `Termios` structure.
1069 /// `cfgetospeed()` extracts the output baud rate from the given `Termios` structure.