| // DO NOT EDIT: This file is machine-generated by fidlgen |
| #![warn(clippy::all)] |
| #![allow(unused_parens, unused_variables, unused_mut, unused_imports, unreachable_code)] |
| |
| pub const BASIC: &str = "\'\"\\\n\r\t"; |
| |
| pub const DOLLAR: &str = "$"; |
| |
| pub const DOLLAR_BRACE: &str = "${"; |
| |
| #[doc = " \"pleaseescapethisdocommentproperly\"\n"] |
| #[derive(PartialEq, Clone, Debug)] |
| #[repr(C)] |
| pub struct DocCommentWithQuotes {} |
| |
| impl ::fidl_next::Encodable for DocCommentWithQuotes { |
| const COPY_OPTIMIZATION: ::fidl_next::CopyOptimization<Self, WireDocCommentWithQuotes> = |
| unsafe { ::fidl_next::CopyOptimization::enable_if(true) }; |
| |
| type Encoded = WireDocCommentWithQuotes; |
| } |
| |
| unsafe impl<___E> ::fidl_next::Encode<___E> for DocCommentWithQuotes |
| where |
| ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized, |
| { |
| #[inline] |
| fn encode( |
| self, |
| encoder_: &mut ___E, |
| out_: &mut ::core::mem::MaybeUninit<Self::Encoded>, |
| ) -> ::core::result::Result<(), ::fidl_next::EncodeError> { |
| ::fidl_next::munge! { |
| let Self::Encoded { |
| |
| } = out_; |
| } |
| |
| Ok(()) |
| } |
| } |
| |
| unsafe impl<___E> ::fidl_next::EncodeRef<___E> for DocCommentWithQuotes |
| where |
| ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized, |
| { |
| #[inline] |
| fn encode_ref( |
| &self, |
| encoder_: &mut ___E, |
| out_: &mut ::core::mem::MaybeUninit<Self::Encoded>, |
| ) -> ::core::result::Result<(), ::fidl_next::EncodeError> { |
| ::fidl_next::munge! { |
| let Self::Encoded { |
| |
| } = out_; |
| } |
| |
| Ok(()) |
| } |
| } |
| |
| impl ::fidl_next::EncodableOption for DocCommentWithQuotes { |
| type EncodedOption = ::fidl_next::WireBox<'static, WireDocCommentWithQuotes>; |
| } |
| |
| unsafe impl<___E> ::fidl_next::EncodeOption<___E> for DocCommentWithQuotes |
| where |
| ___E: ::fidl_next::Encoder + ?Sized, |
| DocCommentWithQuotes: ::fidl_next::Encode<___E>, |
| { |
| #[inline] |
| fn encode_option( |
| this: ::core::option::Option<Self>, |
| encoder: &mut ___E, |
| out: &mut ::core::mem::MaybeUninit<Self::EncodedOption>, |
| ) -> ::core::result::Result<(), ::fidl_next::EncodeError> { |
| if let Some(inner) = this { |
| ::fidl_next::EncoderExt::encode_next(encoder, inner)?; |
| ::fidl_next::WireBox::encode_present(out); |
| } else { |
| ::fidl_next::WireBox::encode_absent(out); |
| } |
| |
| Ok(()) |
| } |
| } |
| |
| unsafe impl<___E> ::fidl_next::EncodeOptionRef<___E> for DocCommentWithQuotes |
| where |
| ___E: ::fidl_next::Encoder + ?Sized, |
| DocCommentWithQuotes: ::fidl_next::EncodeRef<___E>, |
| { |
| #[inline] |
| fn encode_option_ref( |
| this: ::core::option::Option<&Self>, |
| encoder: &mut ___E, |
| out: &mut ::core::mem::MaybeUninit<Self::EncodedOption>, |
| ) -> ::core::result::Result<(), ::fidl_next::EncodeError> { |
| if let Some(inner) = this { |
| ::fidl_next::EncoderExt::encode_next(encoder, inner)?; |
| ::fidl_next::WireBox::encode_present(out); |
| } else { |
| ::fidl_next::WireBox::encode_absent(out); |
| } |
| |
| Ok(()) |
| } |
| } |
| |
| impl ::fidl_next::FromWire<WireDocCommentWithQuotes> for DocCommentWithQuotes { |
| const COPY_OPTIMIZATION: ::fidl_next::CopyOptimization<WireDocCommentWithQuotes, Self> = |
| unsafe { ::fidl_next::CopyOptimization::enable_if(true) }; |
| |
| #[inline] |
| fn from_wire(wire: WireDocCommentWithQuotes) -> Self { |
| Self {} |
| } |
| } |
| |
| impl ::fidl_next::IntoNatural for WireDocCommentWithQuotes { |
| type Natural = DocCommentWithQuotes; |
| } |
| |
| impl ::fidl_next::FromWireRef<WireDocCommentWithQuotes> for DocCommentWithQuotes { |
| #[inline] |
| fn from_wire_ref(wire: &WireDocCommentWithQuotes) -> Self { |
| Self {} |
| } |
| } |
| |
| /// The wire type corresponding to [`DocCommentWithQuotes`]. |
| #[derive(Clone, Debug)] |
| #[repr(C)] |
| pub struct WireDocCommentWithQuotes {} |
| |
| unsafe impl ::fidl_next::Wire for WireDocCommentWithQuotes { |
| type Decoded<'de> = WireDocCommentWithQuotes; |
| |
| #[inline] |
| fn zero_padding(out_: &mut ::core::mem::MaybeUninit<Self>) { |
| ::fidl_next::munge! { |
| let Self { |
| |
| } = &mut *out_; |
| } |
| } |
| } |
| |
| unsafe impl<___D> ::fidl_next::Decode<___D> for WireDocCommentWithQuotes |
| where |
| ___D: ::fidl_next::decoder::InternalHandleDecoder + ?Sized, |
| { |
| fn decode( |
| slot_: ::fidl_next::Slot<'_, Self>, |
| decoder_: &mut ___D, |
| ) -> ::core::result::Result<(), ::fidl_next::DecodeError> { |
| ::fidl_next::munge! { |
| let Self { |
| |
| } = slot_; |
| } |
| |
| Ok(()) |
| } |
| } |
| |
| pub const MAX: &str = "\u{10ffff}"; |
| |
| pub const NULL: &str = "\u{0}"; |
| |
| pub const SMILE_LEADING_ZERO: &str = "\u{1f600}"; |
| |
| pub const SMILE_LITERAL: &str = "\u{1f600}"; |
| |
| pub const SMILE_LOWER: &str = "\u{1f600}"; |
| |
| pub const SMILE_UPPER: &str = "\u{1f600}"; |
| |
| /// Compatibility shims which mimic some API surfaces of the current Rust bindings. |
| pub mod compat { |
| |
| impl ::fidl_next::CompatFrom<crate::DocCommentWithQuotes> |
| for ::fidl_test_escaping::DocCommentWithQuotes |
| { |
| #[inline] |
| fn compat_from(value: crate::DocCommentWithQuotes) -> Self { |
| Self {} |
| } |
| } |
| |
| impl ::fidl_next::CompatFrom<::fidl_test_escaping::DocCommentWithQuotes> |
| for crate::DocCommentWithQuotes |
| { |
| #[inline] |
| fn compat_from(value: ::fidl_test_escaping::DocCommentWithQuotes) -> Self { |
| Self {} |
| } |
| } |
| } |