//! Detect Cycle in Singly Linked list (Floyd's Tortoise and Hare, Generic, Production-Grade)
//!
//! Detects if a singly linked list has a cycle.
//!
//! # Type Parameters
//! * `T`: Value type. Must implement `Clone`.
//!
//! # Example
//! ```rust
//! use lunaris_engine::linked_list::detect_cycle::*;
//! use lunaris_engine::linked_list::singly_linked_list::ListNode;
//! let mut head = Some(Box::new(ListNode::new(1)));
//! head.as_mut().unwrap().next = Some(Box::new(ListNode::new(2)));
//! assert!(!has_cycle(&head));
//! ```
use crateListNode;