Lines Matching defs:std

3 use std::fmt;
40 /// Get a value from a type implementing `std::fmt::Debug`.
48 /// Get a value from a type implementing `std::fmt::Display`.
133 /// # use std::fmt::Debug;
165 /// Get a value from a type implementing `std::fmt::Debug`.
175 /// Get a value from a type implementing `std::fmt::Display`.
189 T: std::error::Error + 'static,
218 /// Get a value from a type implementing `std::fmt::Debug`.
228 /// Get a value from a type implementing `std::fmt::Display`.
260 /// Get a value from a dynamic `std::fmt::Debug`.
267 /// Get a value from a dynamic `std::fmt::Display`.
276 pub fn from_dyn_error(err: &'v (dyn std::error::Error + 'static)) -> Self {
363 err: &(dyn std::error::Error + 'static),
371 err: &'v (dyn std::error::Error + 'static),
408 impl ToValue for dyn std::error::Error + 'static {
456 impl ToValue for std::num::NonZeroU128 {
462 impl ToValue for std::num::NonZeroI128 {
486 impl<'v> From<&'v std::num::NonZeroU128> for Value<'v> {
487 fn from(v: &'v std::num::NonZeroU128) -> Value<'v> {
489 Value::from_value_bag(unsafe { std::mem::transmute::<&std::num::NonZeroU128, &u128>(v) })
493 impl<'v> From<&'v std::num::NonZeroI128> for Value<'v> {
494 fn from(v: &'v std::num::NonZeroI128) -> Value<'v> {
496 Value::from_value_bag(unsafe { std::mem::transmute::<&std::num::NonZeroI128, &i128>(v) })
539 impl ToValue for std::num::$into_ty {
545 impl<'v> From<std::num::$into_ty> for Value<'v> {
546 fn from(value: std::num::$into_ty) -> Self {
595 pub fn to_borrowed_error(&self) -> Option<&(dyn std::error::Error + 'static)> {
609 use std::borrow::Cow;
704 fn visit_error(&mut self, err: &(dyn std::error::Error + 'static)) -> Result<(), Error> {
712 err: &'v (dyn std::error::Error + 'static),
763 fn visit_error(&mut self, err: &(dyn std::error::Error + 'static)) -> Result<(), Error> {
770 err: &'v (dyn std::error::Error + 'static),
795 Value::from(std::num::NonZeroU8::new(8).unwrap()),
796 Value::from(std::num::NonZeroU16::new(16).unwrap()),
797 Value::from(std::num::NonZeroU32::new(32).unwrap()),
798 Value::from(std::num::NonZeroU64::new(64).unwrap()),
799 Value::from(std::num::NonZeroUsize::new(1).unwrap()),
811 Value::from(std::num::NonZeroI8::new(-8).unwrap()),
812 Value::from(std::num::NonZeroI16::new(-16).unwrap()),
813 Value::from(std::num::NonZeroI32::new(-32).unwrap()),
814 Value::from(std::num::NonZeroI64::new(-64).unwrap()),
815 Value::from(std::num::NonZeroIsize::new(-1).unwrap()),
848 let err = std::io::Error::from(std::io::ErrorKind::Other);