MCPcopy Create free account
hub / github.com/cloudflare/recapn / new_struct

Method new_struct

recapn/src/orphan.rs:89–92  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

87
88 #[inline]
89 pub fn new_struct<S: ty::Struct>(&self) -> Orphan<'a, Struct<S>, T> {
90 self.try_new_struct::<S>()
91 .expect("failed to allocate struct")
92 }
93
94 #[inline]
95 pub fn try_new_any_struct(&self, size: StructSize) -> Result<Orphan<'a, AnyStruct, T>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected