/// Ensures the value is a `Struct`, returning a type mismatch error if that's not the case.
Ensures the value is a `Struct`, returning a type mismatch error if that's not the case.
Ensures the value is a ` Struct ` returning a type mismatch error if that ' s not the case .
pub fn ensure_raw_struct(&self) -> Result<GcRaw<Struct>, ErrorKind> {
      if self.0.kind() == ValueKind::Struct {
         Ok(unsafe { self.0.get_raw_struct_unchecked() })
      } else {
         Err(self.type_error("(any struct)"))
      }
   }
pub fn ensure_raw_struct ( & self ) -> Result < GcRaw < Struct > , ErrorKind > { if self . 0 . kind ( ) == ValueKind :: Struct { Ok ( unsafe { self . 0 . get_raw_struct_unchecked ( ) } ) } else { Err ( self . type_error ( " " ) ) } }
Ensures the value is a `Struct`, returning a type mismatch error if that's not the case.
Ensures the value is a ` Struct ` returning a type mismatch error if that ' s not the case .
&self
<not_specific>