LabeledBoolean

open class LabeledBoolean:
    LabeledBooleanProtocol

Undocumented

  • Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly.

    See more

    Declaration

    Swift

    public struct NoPointer
  • Undocumented

    Declaration

    Swift

    required public init(unsafeFromRawPointer pointer: UnsafeMutableRawPointer)
  • This constructor can be used to instantiate a fake object.

    Warning

    Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn’t a backing [Pointer] the FFI lower functions will crash.

    Declaration

    Swift

    public init(noPointer: NoPointer)

    Parameters

    noPointer

    Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject].

  • Undocumented

    Declaration

    Swift

    public func uniffiClonePointer() -> UnsafeMutableRawPointer
  • Undocumented

    Declaration

    Swift

    public convenience init(_ meta: CommonMetricData, _ labels: [CowString]?)
  • Undocumented

    Declaration

    Swift

    open func get(_ label: String) -> BooleanMetric
  • Undocumented

    Declaration

    Swift

    open func testGetNumRecordedErrors(_ error: ErrorType) -> Int32