MCPcopy Create free account
hub / github.com/awslabs/llrt / clone

Method clone

modules/llrt_stream_web/src/readable/stream/algorithms.rs:173–191  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

171
172impl<'js> Clone for CancelAlgorithm<'js> {
173 fn clone(&self) -> Self {
174 match self {
175 Self::ReturnPromiseUndefined => Self::ReturnPromiseUndefined,
176 Self::Function {
177 f,
178 underlying_source,
179 } => Self::Function {
180 f: f.clone(),
181 underlying_source: underlying_source.clone(),
182 },
183 Self::RustFunction(rc) => Self::RustFunction(rc.clone()),
184 Self::Tee1(state) => Self::Tee1(state.clone()),
185 Self::Tee2(state) => Self::Tee2(state.clone()),
186 Self::Transform { stream, controller } => Self::Transform {
187 stream: stream.clone(),
188 controller: controller.clone(),
189 },
190 }
191 }
192}
193
194impl<'js> Trace<'js> for CancelAlgorithm<'js> {

Calls

no outgoing calls

Tested by

no test coverage detected