Elasticity and biochemistry of growth relate replication rate to cell length and cross-link density in rod-shaped bacteria.