Docs.rs
  • floating-ui-utils-0.0.7
    • floating-ui-utils 0.0.7
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • DanielleHuisman
    • Dependencies
      • cfg-if ^1.0.0 normal
      • dyn-clone ^1.0.17 normal
      • serde ^1.0.197 normal
      • web-sys ^0.3.69 normal optional
    • Versions
    • 1.75% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

floating_ui_utils0.0.7

  • All Items
  • Modules
  • Structs
  • Enums
  • Constants
  • Traits
  • Functions
?
Settings

Crate floating_ui_utils

source ·
Expand description

Rust port of Floating UI.

Utility functions shared across Floating UI packages. You may use these functions in your own projects, but are subject to breaking changes.

See @floating-ui/utils for the original package.

Modules§

  • dom
    Utility functions for the DOM. Requires dom feature.

Structs§

  • ClientRectObject
  • Coords
  • DefaultVirtualElement
  • Dimensions
  • ElementRects
  • PartialSideObject
  • Rect
  • SideObject

Enums§

  • AlignedPlacement
  • Alignment
  • Axis
  • ElementOrVirtual
  • ElementOrWindow
  • Length
  • OwnedElementOrVirtual
  • OwnedElementOrWindow
  • Padding
  • Placement
  • Side
  • Strategy

Constants§

  • ALL_PLACEMENTS
  • ALL_SIDES

Traits§

  • GetBoundingClientRectCloneable
  • GetClientRectsCloneable
  • VirtualElement
    Custom positioning reference element.

Functions§

  • clamp
  • expand_padding_object
  • get_alignment
  • get_alignment_axis
  • get_alignment_sides
  • get_axis_length
  • get_expanded_placements
  • get_opposite_alignment_placement
  • get_opposite_axis
  • get_opposite_axis_placements
  • get_opposite_placement
  • get_opposite_side
  • get_padding_object
  • get_placement
  • get_side
  • get_side_axis
  • get_side_list
  • rect_to_client_rect