MCPcopy Create free account
hub / github.com/cryptape/rust-numext / defutils

Method defutils

constructor/src/fixed_uint/core/constructor.rs:189–205  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

187 }
188
189 fn defutils(&self) {
190 let utils_name = &self.ts.utils_name;
191 let part = {
192 let utils = self.utils.take();
193 if utils.is_empty() {
194 quote!()
195 } else {
196 let utils = TokenStream::from_iter(utils);
197 quote!(
198 pub(crate) mod #utils_name {
199 #utils
200 }
201 )
202 }
203 };
204 self.attach_common(part);
205 }
206
207 fn deftraits(&self) {
208 let part = {

Callers 1

outputMethod · 0.45

Calls 1

attach_commonMethod · 0.45

Tested by

no test coverage detected