Docs.rs
  • floating-ui-utils-0.4.1
    • floating-ui-utils 0.4.1
    • Permalink
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • DanielleHuisman
    • Dependencies
      • cfg-if ^1.0.0 normal
      • dyn_derive ^0.3.4 normal
      • dyn_std ^0.3.3 normal
      • serde ^1.0.209 normal
      • web-sys ^0.3.70 normal optional
    • Versions
    • 2.16% of the crate is documented
  • 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
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

floating_ui_utils0.4.1

  • All Items

Crate Items

  • Modules
  • Structs
  • Enums
  • Constants
  • Traits
  • Functions

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 the Rust Floating UI book for more documenation.

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
GetBoundingClientRectCloneableFactory
GetClientRectsCloneable
GetClientRectsCloneableFactory
VirtualElement
Custom positioning reference element.
VirtualElementFactory
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