FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InkPersistenceLimits

    struct · ferroui-controls-inking · v0.5.0

    struct InkPersistenceLimits
    

    Codec resource limits apply before allocation and cumulatively across records. The defaults permit a 64 MiB payload, 100,000 strokes, 65,536 samples per stroke and 1,000,000 samples in total.

    These limits bound serialized input and raw telemetry. Stroke construction and collection admission additionally reserve derived geometry against InkStroke::MAX_RENDERED_VERTICES and super::InkStrokeContainer::MAX_RENDERED_VERTICES. Changing codec limits does not raise those limits or the collection's raw sample limits. Geometry rejection returns InkError::LimitExceeded before the collection changes. Cached raw/smoothed samples, contour vectors and renderer-owned geometry occupy separate allocations; the serialized byte cap is not a total heap memory cap.

    View source

    Members

    max_bytes

    max_bytes: usize
    

    Source

    max_strokes

    max_strokes: usize
    

    Source

    max_points_per_stroke

    max_points_per_stroke: usize
    

    Source

    max_total_points

    max_total_points: usize
    

    Source

    DEFAULT

    const DEFAULT: Self
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • IUnknownImpl
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.