NoCopySpan

  • NoCopySpan is an interface used to prevent a span object from being copied when the original Spanned is sliced or copied.

  • When attached to a span object, it ensures the span is not included in the new Spanned created during copy or slice operations.

  • NoCopySpan.Concrete provides a convenient way to create a no-copy span object without explicit implementation.

public interface NoCopySpan
Known Indirect Subclasses

This interface should be added to a span object that should not be copied into a new Spenned when performing a slice or copy operation on the original Spanned it was placed in.

Nested Class Summary

class NoCopySpan.Concrete Convenience equivalent for when you would just want a new Object() for a span but want it to be no-copy.