pub struct Type<'a>(/* private fields */);
Implementations§
Source§impl<'a> Type<'a>
impl<'a> Type<'a>
pub fn get_function(&self) -> FunctionType<'a>
Source§impl<'a> Type<'a>
impl<'a> Type<'a>
pub fn get_message(&self) -> MessageType<'a>
Source§impl<'a> Type<'a>
impl<'a> Type<'a>
pub fn get_opaque(&self) -> OpaqueType<'a>
Source§impl<'a> Type<'a>
impl<'a> Type<'a>
pub fn get_optional(&self) -> OptionalType<'a>
Source§impl<'a> Type<'a>
impl<'a> Type<'a>
pub fn get_struct(&self) -> StructType<'a>
Source§impl<'a> Type<'a>
impl<'a> Type<'a>
pub fn get_type_param(&self) -> TypeParamType<'a>
Source§impl<'a> Type<'a>
impl<'a> Type<'a>
pub fn new_any() -> Self
pub fn new_bool() -> Self
pub fn new_bool_wrapper() -> Self
pub fn new_bytes() -> Self
pub fn new_bytes_wrapper() -> Self
pub fn new_double() -> Self
pub fn new_double_wrapper() -> Self
pub fn new_duration() -> Self
pub fn new_dyn() -> Self
pub fn new_enum(enum_type: &EnumType<'a>) -> Self
pub fn new_error() -> Self
pub fn new_function(function_type: &FunctionType<'a>) -> Self
pub fn new_int() -> Self
pub fn new_int_wrapper() -> Self
pub fn new_list(list_type: &ListType<'a>) -> Self
pub fn new_map(map_type: &MapType<'a>) -> Self
pub fn new_message(message_type: &MessageType<'a>) -> Self
pub fn new_null() -> Self
pub fn new_opaque(opaque_type: &OpaqueType<'a>) -> Self
pub fn new_optional(optional_type: &OptionalType<'a>) -> Self
pub fn new_string() -> Self
pub fn new_string_wrapper() -> Self
pub fn new_struct(struct_type: &StructType<'a>) -> Self
pub fn new_timestamp() -> Self
pub fn new_type_param(type_param_type: &TypeParamType<'a>) -> Self
pub fn new_type(type_type: &TypeType<'a>) -> Self
pub fn new_uint() -> Self
pub fn new_uint_wrapper() -> Self
pub fn new_unknown() -> Self
Trait Implementations§
Source§impl<'a> ExternType for Type<'a>
impl<'a> ExternType for Type<'a>
Source§impl<'a> SpanElement for Type<'a>
impl<'a> SpanElement for Type<'a>
impl<'a> Copy for Type<'a>
Auto Trait Implementations§
impl<'a> Freeze for Type<'a>
impl<'a> RefUnwindSafe for Type<'a>
impl<'a> Send for Type<'a>
impl<'a> Sync for Type<'a>
impl<'a> Unpin for Type<'a>
impl<'a> UnwindSafe for Type<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more