docx_rs/documents/
footer_id.rs

1/*
2#[cfg(not(test))]
3use std::sync::atomic::AtomicUsize;
4#[cfg(not(test))]
5static FOOTER_ID: AtomicUsize = AtomicUsize::new(1);
6
7#[cfg(not(test))]
8pub fn generate_pic_id() -> usize {
9    use std::sync::atomic::Ordering;
10
11    let id = FOOTER_ID.load(Ordering::Relaxed);
12    FOOTER_ID.store(id.wrapping_add(1), Ordering::Relaxed);
13    id
14}
15
16#[cfg(test)]
17pub fn generate_footer_id() -> usize {
18    123
19}
20*/
21
22pub fn create_footer_rid(id: usize) -> String {
23    format!("rIdFooter{}", id)
24}